michaelj commited on
Commit
8546ebb
1 Parent(s): c98617b

update predict

Browse files
Files changed (1) hide show
  1. main.py +5 -5
main.py CHANGED
@@ -13,12 +13,12 @@ app = FastAPI()
13
  def root():
14
  return {"API": "Sum of 2 Squares"}
15
 
16
- @app.get('/Sum_Square')
17
- async def predict(number_1: int, number_2: int):
18
-
19
- prediction = number_1**2 + number_2**2
20
 
21
- return prediction
22
 
23
 
24
 
 
13
  def root():
14
  return {"API": "Sum of 2 Squares"}
15
 
16
+ @app.post('/predict')
17
+ async def predict_with_prompt(prompt: str):
18
+
19
+
20
 
21
+ return "你好"+prompt
22
 
23
 
24