Update gradio_app.py
Browse files- gradio_app.py +6 -2
gradio_app.py
CHANGED
@@ -920,6 +920,10 @@ with gr.Blocks(
|
|
920 |
outputs=[result_text]
|
921 |
)
|
922 |
|
923 |
-
# Launch the app
|
924 |
if __name__ == "__main__":
|
925 |
-
|
|
|
|
|
|
|
|
|
|
|
|
920 |
outputs=[result_text]
|
921 |
)
|
922 |
|
|
|
923 |
if __name__ == "__main__":
|
924 |
+
import os
|
925 |
+
app.queue().launch(
|
926 |
+
server_name=os.getenv("GRADIO_SERVER_NAME", "0.0.0.0"),
|
927 |
+
server_port=int(os.getenv("GRADIO_SERVER_PORT", 7860)),
|
928 |
+
share=False
|
929 |
+
)
|