cazyundee commited on
Commit
977bce0
·
verified ·
1 Parent(s): 3fee5c9

chore: temporary names-only env diagnostic

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -963,6 +963,13 @@ def _patched_create_app(blocks, **kwargs):
963
  names = ["RESPIRE_SPACE_KEY", "GOOGLE_API_KEY", "PUBLICAI_API_KEY", "HF_TOKEN", "SPACE_ID"]
964
  return JSONResponse({n: bool(os.environ.get(n)) for n in names})
965
 
 
 
 
 
 
 
 
966
  _log("Routes injected via create_app monkey-patch")
967
  return fa_app
968
 
 
963
  names = ["RESPIRE_SPACE_KEY", "GOOGLE_API_KEY", "PUBLICAI_API_KEY", "HF_TOKEN", "SPACE_ID"]
964
  return JSONResponse({n: bool(os.environ.get(n)) for n in names})
965
 
966
+ @fa_app.get("/respite/_envcheck")
967
+ def _envcheck():
968
+ """TEMPORARY diagnostic: are the expected env NAMES present in the
969
+ container? Values are never included. Removed once confirmed."""
970
+ names = ["RESPIRE_SPACE_KEY", "GOOGLE_API_KEY", "PUBLICAI_API_KEY", "HF_TOKEN", "SPACE_ID"]
971
+ return JSONResponse({n: bool(os.environ.get(n)) for n in names})
972
+
973
  _log("Routes injected via create_app monkey-patch")
974
  return fa_app
975