Files
TexTeller/src/client_demo.py

11 lines
215 B
Python
Raw Normal View History

2024-02-11 08:06:50 +00:00
import requests
url = "http://127.0.0.1:8000/predict"
img_path = "/your/image/path/"
with open(img_path, 'rb') as img:
files = {'img': img}
response = requests.post(url, files=files)
2024-02-11 08:06:50 +00:00
print(response.text)