Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,6 +36,10 @@ if not os.path.exists(DATASET_PATH):
|
|
| 36 |
# Authentication for Hugging Face
|
| 37 |
login(token=TOKEN)
|
| 38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
@app.put("/add/recipe")
|
| 40 |
async def add_recipe(filename: str, recipe: Recipe):
|
| 41 |
# Define the file path based on the filename query parameter
|
|
|
|
| 36 |
# Authentication for Hugging Face
|
| 37 |
login(token=TOKEN)
|
| 38 |
|
| 39 |
+
@app.get("/status")
|
| 40 |
+
def status():
|
| 41 |
+
return {"status": "200"}
|
| 42 |
+
|
| 43 |
@app.put("/add/recipe")
|
| 44 |
async def add_recipe(filename: str, recipe: Recipe):
|
| 45 |
# Define the file path based on the filename query parameter
|