Files
TexTeller/src/client_demo.py

12 lines
182 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/"
data = {"img_path": img_path}
response = requests.post(url, json=data)
print(response.text)