Spaces:
Sleeping
Sleeping
Update main.py
Browse files
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 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
|
|
|
|
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)
|