hsuwill000 commited on
Commit
669f16a
·
verified ·
1 Parent(s): 7dc8c4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
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"}'