Files
TexTeller/texteller/client_demo.py

13 lines
340 B
Python
Raw Normal View History

2024-02-11 08:06:50 +00:00
import requests
2024-06-17 21:03:08 +08:00
rec_server_url = "http://127.0.0.1:8000/frec"
det_server_url = "http://127.0.0.1:8000/fdet"
2024-02-11 08:06:50 +00:00
img_path = "/your/image/path/"
with open(img_path, 'rb') as img:
files = {'img': img}
2024-06-22 21:51:51 +08:00
response = requests.post(rec_server_url, files=files)
# response = requests.post(det_server_url, files=files)
2024-02-11 08:06:50 +00:00
print(response.text)