Kadi-IAM commited on
Commit
80de241
1 Parent(s): 0f2d89d

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(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")
 
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(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")