change host to 0.0.0.0
Browse files
app.py
CHANGED
@@ -165,7 +165,7 @@ with gr.Blocks(title="TextGames", delete_cache=(3600, 3600)) as demo:
|
|
165 |
app = gr.mount_gradio_app(app, demo, path="/TextGames", auth_dependency=get_username)
|
166 |
|
167 |
if __name__ == '__main__':
|
168 |
-
uvicorn.run(app, port=int(os.environ.get("GRADIO_SERVER_PORT", "7860")))
|
169 |
|
170 |
|
171 |
#%%
|
|
|
165 |
app = gr.mount_gradio_app(app, demo, path="/TextGames", auth_dependency=get_username)
|
166 |
|
167 |
if __name__ == '__main__':
|
168 |
+
uvicorn.run(app, port=int(os.environ.get("GRADIO_SERVER_PORT", "7860")), host="0.0.0.0")
|
169 |
|
170 |
|
171 |
#%%
|