[feat] Add texteller training script
This commit is contained in:
10
examples/client_demo.py
Normal file
10
examples/client_demo.py
Normal 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)
|
||||
Reference in New Issue
Block a user