Files
TexTeller/examples/client_demo.py
OleehyO c8e08a22aa 🔧 Fix all ruff typo errors & test CI/CD workflow (#109)
* [chore] Fix ruff typo

* [robot] Fix welcome robot
2025-04-21 13:52:16 +08:00

11 lines
231 B
Python

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}
response = requests.post(server_url, files=files)
print(response.text)