Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,6 +37,10 @@ from exceptions import (
|
|
| 37 |
FlareException, RaceConditionError, format_error_response,
|
| 38 |
get_http_status_code
|
| 39 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
ALLOWED_ORIGINS = os.getenv("ALLOWED_ORIGINS", "http://localhost:4200").split(",")
|
| 42 |
|
|
|
|
| 37 |
FlareException, RaceConditionError, format_error_response,
|
| 38 |
get_http_status_code
|
| 39 |
)
|
| 40 |
+
from dotenv import load_dotenv
|
| 41 |
+
|
| 42 |
+
# Load .env file if exists
|
| 43 |
+
load_dotenv()
|
| 44 |
|
| 45 |
ALLOWED_ORIGINS = os.getenv("ALLOWED_ORIGINS", "http://localhost:4200").split(",")
|
| 46 |
|