Chibueze-Kingsley commited on
Commit
33712dc
·
verified ·
1 Parent(s): ce5d691

Update qwen_app.py

Browse files
Files changed (1) hide show
  1. qwen_app.py +3 -9
qwen_app.py CHANGED
@@ -201,12 +201,6 @@ import nest_asyncio
201
  from pyngrok import ngrok
202
  import uvicorn
203
 
204
- # Allow nested event loops (needed in Colab)
205
- nest_asyncio.apply()
206
-
207
- # Expose port 8000
208
- public_url = ngrok.connect(8000)
209
- print("🚀 Public FastAPI URL:", public_url.public_url)
210
-
211
- # Run app
212
- uvicorn.run("app:app", host="0.0.0.0", port=8000, reload=False)
 
201
  from pyngrok import ngrok
202
  import uvicorn
203
 
204
+ if __name__ == "__main__":
205
+ import uvicorn
206
+ uvicorn.run("qwen_app:app", host="0.0.0.0", port=7860, reload=False)