thanhkt commited on
Commit
c83f37d
·
verified ·
1 Parent(s): dbd0a68

Update gradio_app.py

Browse files
Files changed (1) hide show
  1. 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
- app.queue().launch(server_name="127.0.0.1", share=False)
 
 
 
 
 
 
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
+ )