Spaces:
Sleeping
Sleeping
AnishKumbhar
commited on
Commit
•
d637e6d
1
Parent(s):
4b6d5c5
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
@app.get("/calculate-food")
|
2 |
def calculate_food_endpoint(activity: int, weight: int):
|
3 |
return round(activity / weight, 2)
|
|
|
1 |
+
app = FastAPI(docs_url="/")
|
2 |
@app.get("/calculate-food")
|
3 |
def calculate_food_endpoint(activity: int, weight: int):
|
4 |
return round(activity / weight, 2)
|