Initial commit
This commit is contained in:
11
src/client_demo.py
Normal file
11
src/client_demo.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import requests
|
||||
|
||||
url = "http://127.0.0.1:8000/predict"
|
||||
|
||||
img_path = "/your/image/path/"
|
||||
|
||||
data = {"img_path": img_path}
|
||||
|
||||
response = requests.post(url, json=data)
|
||||
|
||||
print(response.text)
|
||||
Reference in New Issue
Block a user