Spaces:
Running on Zero
Running on Zero
chore: remove the temporary env diagnostic
Browse files
app.py
CHANGED
|
@@ -955,21 +955,6 @@ def _patched_create_app(blocks, **kwargs):
|
|
| 955 |
except Exception as _ce:
|
| 956 |
_log(f"respite CORS gate not installed: {_ce}")
|
| 957 |
|
| 958 |
-
@fa_app.get("/respite/_envcheck")
|
| 959 |
-
def _envcheck():
|
| 960 |
-
"""TEMPORARY diagnostic. Reports whether expected env NAMES are
|
| 961 |
-
present in the container. Values are never included. Removed once
|
| 962 |
-
the cause of the missing secret is confirmed."""
|
| 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 |
|
|
|
|
| 955 |
except Exception as _ce:
|
| 956 |
_log(f"respite CORS gate not installed: {_ce}")
|
| 957 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 958 |
_log("Routes injected via create_app monkey-patch")
|
| 959 |
return fa_app
|
| 960 |
|