Spaces:
Sleeping
Sleeping
update predict
#1
by michaelj - opened
12 unmodified lines13141516171819202122232412 unmodified linesdef root():return {"API": "Sum of 2 Squares"}@app.get('/Sum_Square')async def predict(number_1: int, number_2: int):prediction = number_1**2 + number_2**2return prediction12 unmodified lines13141516171819202122232412 unmodified linesdef root():return {"API": "Sum of 2 Squares"}@app.post('/predict')async def predict_with_prompt(prompt: str):return "你好"+prompt
main.py+5-5