Spaces:
Sleeping
Sleeping
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -96,7 +96,9 @@ def root():
|
|
| 96 |
|
| 97 |
@app.get("/health")
|
| 98 |
def health():
|
| 99 |
-
|
|
|
|
|
|
|
| 100 |
|
| 101 |
|
| 102 |
@app.get("/rows/{config}")
|
|
|
|
| 96 |
|
| 97 |
@app.get("/health")
|
| 98 |
def health():
|
| 99 |
+
token_status = "set" if HF_TOKEN else "not set"
|
| 100 |
+
token_len = len(HF_TOKEN) if HF_TOKEN else 0
|
| 101 |
+
return {"status": "ok", "hf_token": token_status, "token_len": token_len}
|
| 102 |
|
| 103 |
|
| 104 |
@app.get("/rows/{config}")
|