BoxzDev commited on
Commit
9b2174d
·
verified ·
1 Parent(s): c8e7c92

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +6 -4
main.py CHANGED
@@ -132,10 +132,12 @@ async def generate_text(item: Item = None):
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"}
 
 
139
 
140
  if __name__ == "__main__":
141
  uvicorn.run(app, host="0.0.0.0", port=8000)
 
132
 
133
  raise HTTPException(status_code=500, detail=error)
134
 
135
+ return {"text": response_text} # Fixed format
136
+
137
+ # Show online status
138
+ @app.get("/")
139
+ def root():
140
+ return {"status": "Sebari-chan is online!"}
141
 
142
  if __name__ == "__main__":
143
  uvicorn.run(app, host="0.0.0.0", port=8000)