🔧 Fix all ruff typo errors & test CI/CD workflow (#109)
* [chore] Fix ruff typo * [robot] Fix welcome robot
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user