Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -132,10 +132,7 @@ async def generate_text(item: Item = None):
|
|
132 |
|
133 |
raise HTTPException(status_code=500, detail=error)
|
134 |
|
135 |
-
|
136 |
-
if item.key != os.environ["KEY"]:
|
137 |
-
raise HTTPException(status_code=401, detail="Valid key is required.")
|
138 |
-
|
139 |
@app.get("/status")
|
140 |
async def status():
|
141 |
return {"message": "Sebari-chan is online"}
|
|
|
132 |
|
133 |
raise HTTPException(status_code=500, detail=error)
|
134 |
|
135 |
+
# New endpoint to check if Sebari-chan is online
|
|
|
|
|
|
|
136 |
@app.get("/status")
|
137 |
async def status():
|
138 |
return {"message": "Sebari-chan is online"}
|