Spaces:
Runtime error
Runtime error
Update main.py
Browse files
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
|