Spaces:
Sleeping
Sleeping
Update src/proxy_app/main.py
Browse files- src/proxy_app/main.py +4 -0
src/proxy_app/main.py
CHANGED
|
@@ -1640,6 +1640,10 @@ if __name__ == "__main__":
|
|
| 1640 |
Check if the proxy needs onboarding (first-time setup).
|
| 1641 |
Returns True if onboarding is needed, False otherwise.
|
| 1642 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1643 |
# Only check if .env file exists
|
| 1644 |
# PROXY_API_KEY is optional (will show warning if not set)
|
| 1645 |
if not ENV_FILE.is_file():
|
|
|
|
| 1640 |
Check if the proxy needs onboarding (first-time setup).
|
| 1641 |
Returns True if onboarding is needed, False otherwise.
|
| 1642 |
"""
|
| 1643 |
+
# Skip onboarding if CONFIG_ENV secret exists (Hugging Face Spaces deployment)
|
| 1644 |
+
if os.getenv("CONFIG_ENV"):
|
| 1645 |
+
return False
|
| 1646 |
+
|
| 1647 |
# Only check if .env file exists
|
| 1648 |
# PROXY_API_KEY is optional (will show warning if not set)
|
| 1649 |
if not ENV_FILE.is_file():
|