Spaces:
Runtime error
Runtime error
Commit
·
ffe28ed
1
Parent(s):
8e535ee
Update main.py
Browse files
main.py
CHANGED
|
@@ -15,12 +15,10 @@ app = FastAPI()
|
|
| 15 |
def root():
|
| 16 |
return {"API": "Sum of 2 Squares"}
|
| 17 |
|
| 18 |
-
@app.get('/
|
| 19 |
async def predict(number_1: int, number_2: int):
|
| 20 |
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
prediction = number_1**2+number_2**2
|
| 24 |
|
| 25 |
return prediction
|
| 26 |
|
|
|
|
| 15 |
def root():
|
| 16 |
return {"API": "Sum of 2 Squares"}
|
| 17 |
|
| 18 |
+
@app.get('/Sum_Square')
|
| 19 |
async def predict(number_1: int, number_2: int):
|
| 20 |
|
| 21 |
+
prediction = number_1**2 + number_2**2
|
|
|
|
|
|
|
| 22 |
|
| 23 |
return prediction
|
| 24 |
|