7860
Browse files- gradio-web/main.py +2 -2
gradio-web/main.py
CHANGED
|
@@ -124,8 +124,8 @@ def main():
|
|
| 124 |
|
| 125 |
os.environ.setdefault("ROBOMME_TEMP_DEMOS_DIR", str(TEMP_DEMOS_DIR))
|
| 126 |
allowed_paths = build_allowed_paths()
|
| 127 |
-
|
| 128 |
-
server_port =
|
| 129 |
LOGGER.info(
|
| 130 |
"Launching UI with server_name=%s server_port=%s ROBOMME_TEMP_DEMOS_DIR=%s",
|
| 131 |
"0.0.0.0",
|
|
|
|
| 124 |
|
| 125 |
os.environ.setdefault("ROBOMME_TEMP_DEMOS_DIR", str(TEMP_DEMOS_DIR))
|
| 126 |
allowed_paths = build_allowed_paths()
|
| 127 |
+
server_port = int(os.getenv("PORT", "7860"))
|
| 128 |
+
#server_port = 7862
|
| 129 |
LOGGER.info(
|
| 130 |
"Launching UI with server_name=%s server_port=%s ROBOMME_TEMP_DEMOS_DIR=%s",
|
| 131 |
"0.0.0.0",
|