jonathanagustin commited on
Commit
1741da8
·
verified ·
1 Parent(s): 37d53b3

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -96,7 +96,9 @@ def root():
96
 
97
  @app.get("/health")
98
  def health():
99
- return {"status": "ok"}
 
 
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}")