ManTea commited on
Commit
cadb68d
·
1 Parent(s): c626b14
Files changed (1) hide show
  1. app.py +3 -8
app.py CHANGED
@@ -136,11 +136,6 @@ async def clear_user_memory(user_id: str):
136
  raise HTTPException(status_code=500, detail=str(e))
137
 
138
  if __name__ == "__main__":
139
- # Khi chạy local
140
- if os.getenv("DEVELOPMENT"):
141
- uvicorn.run(app, host="0.0.0.0", port=8000)
142
- else:
143
- # Khi deploy trên Hugging Face
144
- import nest_asyncio
145
- nest_asyncio.apply()
146
- uvicorn.run(app, host="0.0.0.0", port=7860)
 
136
  raise HTTPException(status_code=500, detail=str(e))
137
 
138
  if __name__ == "__main__":
139
+ import nest_asyncio
140
+ nest_asyncio.apply()
141
+ uvicorn.run(app, host="0.0.0.0", port=7860)