Update hf_demo.py
Browse files- hf_demo.py +7 -1
hf_demo.py
CHANGED
|
@@ -100,4 +100,10 @@ iface = gr.Interface(
|
|
| 100 |
outputs="text",
|
| 101 |
title="ARF v4 Demo"
|
| 102 |
)
|
| 103 |
-
app = gr.mount_gradio_app(app, iface, path="/")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
outputs="text",
|
| 101 |
title="ARF v4 Demo"
|
| 102 |
)
|
| 103 |
+
app = gr.mount_gradio_app(app, iface, path="/")
|
| 104 |
+
|
| 105 |
+
# ============== MAIN ENTRY POINT ==============
|
| 106 |
+
if __name__ == "__main__":
|
| 107 |
+
# Launch the Gradio interface – this will start the server
|
| 108 |
+
# Hugging Face automatically provides the correct port
|
| 109 |
+
iface.launch(server_name="0.0.0.0")
|