michaelj commited on
Commit
fc71933
1 Parent(s): c98617b
Files changed (1) hide show
  1. main.py +4 -6
main.py CHANGED
@@ -13,12 +13,10 @@ 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
+ return "你好"+prompt
21
 
22