Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,8 +20,8 @@ import os
|
|
| 20 |
from sentinelhub import SHConfig
|
| 21 |
|
| 22 |
if __name__ == "__main__":
|
| 23 |
-
port = int(os.environ.get("PORT",
|
| 24 |
-
uvicorn.run(
|
| 25 |
|
| 26 |
# If you want to point directly to a file:
|
| 27 |
# config = SHConfig(config_location=CONFIG_FILE)
|
|
|
|
| 20 |
from sentinelhub import SHConfig
|
| 21 |
|
| 22 |
if __name__ == "__main__":
|
| 23 |
+
port = int(os.environ.get("PORT", 7860))
|
| 24 |
+
uvicorn.run(app, host="0.0.0.0", port=port)
|
| 25 |
|
| 26 |
# If you want to point directly to a file:
|
| 27 |
# config = SHConfig(config_location=CONFIG_FILE)
|