Files
TexTeller/examples/client_demo.py

11 lines
231 B
Python
Raw Normal View History

2025-04-19 16:29:49 +00:00
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}
2025-04-19 16:29:49 +00:00
response = requests.post(server_url, files=files)
print(response.text)