[feat] Add texteller training script

This commit is contained in:
OleehyO
2025-04-19 16:29:49 +00:00
parent 991d6bc00d
commit a7a296025a
43 changed files with 531 additions and 0 deletions

10
examples/client_demo.py Normal file
View File

@@ -0,0 +1,10 @@
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)