GitHub Actions commited on
Commit
c294db9
·
1 Parent(s): c79d92a

deploy: sync from GitHub f3f09c3028794227ffb4ba8e2dd441deed630b99

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -31,6 +31,8 @@ if not _secret_key:
31
  # On HF Spaces, set FLASK_SECRET_KEY as a Space secret to avoid session loss between workers.
32
  _secret_key = str(uuid.uuid4())
33
  print("WARNING: FLASK_SECRET_KEY not set — using random key. Sessions will break across workers/restarts.")
 
 
34
  app.secret_key = _secret_key
35
 
36
  # disable werkzeug logging - too noisy
 
31
  # On HF Spaces, set FLASK_SECRET_KEY as a Space secret to avoid session loss between workers.
32
  _secret_key = str(uuid.uuid4())
33
  print("WARNING: FLASK_SECRET_KEY not set — using random key. Sessions will break across workers/restarts.")
34
+ else:
35
+ print(f"INFO: FLASK_SECRET_KEY is set (length={len(_secret_key)})")
36
  app.secret_key = _secret_key
37
 
38
  # disable werkzeug logging - too noisy