bardd commited on
Commit
cd16e60
·
verified ·
1 Parent(s): 260d3dd

Update src/proxy_app/main.py

Browse files
Files changed (1) hide show
  1. 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():