Spaces:
Sleeping
Sleeping
Commit ·
5f1ee2a
1
Parent(s): 3ae468e
Fixing Port Routing issue
Browse files
app.py
CHANGED
|
@@ -906,9 +906,8 @@ with gr.Blocks(title="🏆 Hackathon-Winning Query System", theme=gr.themes.Defa
|
|
| 906 |
outputs=[single_output]
|
| 907 |
)
|
| 908 |
|
| 909 |
-
|
| 910 |
-
demo.launch(server_name="0.0.0.0", server_port=7860, show_error=True)
|
| 911 |
|
| 912 |
if __name__ == "__main__":
|
| 913 |
-
|
| 914 |
-
uvicorn.run(
|
|
|
|
| 906 |
outputs=[single_output]
|
| 907 |
)
|
| 908 |
|
| 909 |
+
app = gr.mount_gradio_app(api_app, demo, path="/")
|
|
|
|
| 910 |
|
| 911 |
if __name__ == "__main__":
|
| 912 |
+
import uvicorn
|
| 913 |
+
uvicorn.run(app, host="0.0.0.0", port=7860)
|