Update qwen_app.py
Browse files- 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 |
-
|
| 205 |
-
|
| 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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|