Spaces:
Running on Zero
Running on Zero
chore: temporary names-only env diagnostic
Browse files
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 |
|