BoxzDev commited on
Commit
c8e7c92
·
verified ·
1 Parent(s): 129bc9c

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -4
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
- if "KEY" in os.environ:
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"}