sharktide commited on
Commit
f30b258
·
verified ·
1 Parent(s): af16a40

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
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