Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -142,7 +142,10 @@ if "app" not in globals():
|
|
| 142 |
app = gr.mount_gradio_app(api, demo, path="/gradio")
|
| 143 |
|
| 144 |
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 142 |
app = gr.mount_gradio_app(api, demo, path="/gradio")
|
| 143 |
|
| 144 |
|
| 145 |
+
import os
|
| 146 |
+
|
| 147 |
+
if __name__ == "__main__":
|
| 148 |
+
demo.launch(
|
| 149 |
+
server_name="0.0.0.0",
|
| 150 |
+
server_port=int(os.environ.get("PORT", 7860))
|
| 151 |
+
)
|