Spaces:
Paused
Paused
Respect the Gradio runtime server port
Browse files
app.py
CHANGED
|
@@ -674,4 +674,4 @@ with gr.Blocks(title="Quickference") as demo:
|
|
| 674 |
if __name__ == "__main__":
|
| 675 |
import uvicorn
|
| 676 |
threading.Thread(target=expire_sessions, daemon=True).start()
|
| 677 |
-
uvicorn.run(create_server(), host="0.0.0.0", port=7860, access_log=False)
|
|
|
|
| 674 |
if __name__ == "__main__":
|
| 675 |
import uvicorn
|
| 676 |
threading.Thread(target=expire_sessions, daemon=True).start()
|
| 677 |
+
uvicorn.run(create_server(), host="0.0.0.0", port=int(os.environ.get("GRADIO_SERVER_PORT", "7860")), access_log=False)
|