huedaya commited on
Commit
722d8dd
·
verified ·
1 Parent(s): 533ea62

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +5 -0
main.py CHANGED
@@ -56,6 +56,11 @@ def generate(item: Item):
56
  output += response.token.text
57
  return output
58
 
 
 
 
 
 
59
  @app.post("/generate/")
60
  async def generate_text(item: Item, token: Annotated[str, Depends(oauth2_scheme)]):
61
  # Reject if not authenticated
 
56
  output += response.token.text
57
  return output
58
 
59
+ @app.get("/")
60
+ async def root():
61
+ return {"status": "ok"}
62
+
63
+
64
  @app.post("/generate/")
65
  async def generate_text(item: Item, token: Annotated[str, Depends(oauth2_scheme)]):
66
  # Reject if not authenticated