Neon-AI commited on
Commit
62325dd
·
verified ·
1 Parent(s): 0373b7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -33,3 +33,8 @@ async def chat(query: str):
33
  browser.close()
34
 
35
  return {"response": message}
 
 
 
 
 
 
33
  browser.close()
34
 
35
  return {"response": message}
36
+
37
+ if __name__ == "__main__":
38
+ import uvicorn
39
+ port = int(os.environ.get("PORT", 7860)) # HF Spaces sets this automatically
40
+ uvicorn.run(app, host="0.0.0.0", port=port)