Kadi-IAM commited on
Commit
6873500
1 Parent(s): 8739149

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -521,13 +521,13 @@ with gr.Blocks(theme=gr.themes.Ocean()) as main_demo:
521
  app = gr.mount_gradio_app(app, main_demo, path="/gradio", auth_dependency=get_user)
522
 
523
 
524
- def launch_gradio():
525
- login_demo.launch(server_port=7860, share=True)
526
 
527
 
528
  import threading
529
 
530
  if __name__ == "__main__":
531
  # Launch Gradio with share=True in a separate thread
532
- threading.Thread(target=launch_gradio).start()
533
- uvicorn.run(app, port=8000, host="0.0.0.0")
 
521
  app = gr.mount_gradio_app(app, main_demo, path="/gradio", auth_dependency=get_user)
522
 
523
 
524
+ #def launch_gradio():
525
+ # login_demo.launch(server_port=7860, share=True)
526
 
527
 
528
  import threading
529
 
530
  if __name__ == "__main__":
531
  # Launch Gradio with share=True in a separate thread
532
+ # threading.Thread(target=launch_gradio).start()
533
+ uvicorn.run(app, port=7860, host="0.0.0.0")