🔧 Fix all ruff typo errors & test CI/CD workflow (#109)

* [chore] Fix ruff typo

* [robot] Fix welcome robot
This commit is contained in:
OleehyO
2025-04-21 13:52:16 +08:00
committed by GitHub
parent 4d3be22956
commit c8e08a22aa
9 changed files with 127 additions and 123 deletions

View File

@@ -3,8 +3,8 @@ import requests
server_url = "http://127.0.0.1:8000/predict"
img_path = "/path/to/your/image"
with open(img_path, 'rb') as img:
files = {'img': img}
with open(img_path, "rb") as img:
files = {"img": img}
response = requests.post(server_url, files=files)
print(response.text)