Files
TexTeller/src/client_demo.py
三洋三洋 2d21d2d215 update
2024-02-27 07:44:35 +00:00

11 lines
215 B
Python

import requests
url = "http://127.0.0.1:8000/predict"
img_path = "/your/image/path/"
with open(img_path, 'rb') as img:
files = {'img': img}
response = requests.post(url, files=files)
print(response.text)