Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,6 +19,10 @@ import os
|
|
| 19 |
# 2) Now import and instantiate SHConfig
|
| 20 |
from sentinelhub import SHConfig
|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
# If you want to point directly to a file:
|
| 23 |
# config = SHConfig(config_location=CONFIG_FILE)
|
| 24 |
config = SHConfig(
|
|
|
|
| 19 |
# 2) Now import and instantiate SHConfig
|
| 20 |
from sentinelhub import SHConfig
|
| 21 |
|
| 22 |
+
if __name__ == "__main__":
|
| 23 |
+
port = int(os.environ.get("PORT", 8000))
|
| 24 |
+
uvicorn.run("app: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)
|
| 28 |
config = SHConfig(
|