Update app.py
Browse files
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=
|
|
|
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")
|