Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,8 +26,8 @@ from fastapi.middleware.cors import CORSMiddleware
|
|
| 26 |
from sentinelhub import SHConfig
|
| 27 |
|
| 28 |
if __name__ == "__main__":
|
| 29 |
-
port = int(os.environ.get("PORT",
|
| 30 |
-
uvicorn.run(
|
| 31 |
|
| 32 |
# If you want to point directly to a file:
|
| 33 |
# config = SHConfig(config_location=CONFIG_FILE)
|
|
|
|
| 26 |
from sentinelhub import SHConfig
|
| 27 |
|
| 28 |
if __name__ == "__main__":
|
| 29 |
+
port = int(os.environ.get("PORT", 7860))
|
| 30 |
+
uvicorn.run(app, host="0.0.0.0", port=port)
|
| 31 |
|
| 32 |
# If you want to point directly to a file:
|
| 33 |
# config = SHConfig(config_location=CONFIG_FILE)
|