Spaces:
Build error
Build error
Krish Shah-Nathwani
commited on
Commit
·
19a9e5e
1
Parent(s):
ca106aa
fixing port issues
Browse files
app.py
CHANGED
|
@@ -57,4 +57,10 @@ demo = gr.Interface(
|
|
| 57 |
)
|
| 58 |
|
| 59 |
if __name__ == "__main__":
|
| 60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
)
|
| 58 |
|
| 59 |
if __name__ == "__main__":
|
| 60 |
+
import os
|
| 61 |
+
|
| 62 |
+
host = os.getenv("GRADIO_SERVER_NAME", "0.0.0.0")
|
| 63 |
+
port = int(os.getenv("GRADIO_SERVER_PORT", "8000"))
|
| 64 |
+
|
| 65 |
+
demo.launch(server_name=host, server_port=port, share=True)
|
| 66 |
+
|