Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,3 +17,9 @@ def predict(item: Item):
|
|
| 17 |
# 模擬一個簡單推論邏輯
|
| 18 |
result = item.text.upper()
|
| 19 |
return {"input": item.text, "result": result}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
# 模擬一個簡單推論邏輯
|
| 18 |
result = item.text.upper()
|
| 19 |
return {"input": item.text, "result": result}
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
#sample
|
| 23 |
+
#!curl -X POST https://hsuwill000-fastapitest.hf.space/predict \
|
| 24 |
+
# -H "Content-Type: application/json" \
|
| 25 |
+
# -d '{"text":"hello world2"}'
|