Upload files to "/"

This commit is contained in:
2026-03-06 18:00:13 +08:00
parent 0245edf448
commit c12d3ce84d
3 changed files with 157 additions and 0 deletions

6
test.py Normal file
View File

@@ -0,0 +1,6 @@
import requests
url = "http://10.200.0.118:8000/predict"
files = {"file": open("20260306-065909.webp", "rb")}
response = requests.post(url, files=files)
print(response.text) # 打印识别结果