mc0117 commited on
Commit
ee1b2d0
·
1 Parent(s): 673c82b
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -434,5 +434,12 @@ with gr.Blocks(title="game-sim-v0 | MLB Game Simulator") as demo:
434
 
435
  if __name__ == "__main__":
436
  print(f"HF_TOKEN present: {bool(os.environ.get('HF_TOKEN'))}")
 
 
 
 
 
 
 
437
  _ensure_data()
438
  demo.launch()
 
434
 
435
  if __name__ == "__main__":
436
  print(f"HF_TOKEN present: {bool(os.environ.get('HF_TOKEN'))}")
437
+ try:
438
+ from huggingface_hub import HfApi
439
+ api = HfApi(token=os.environ.get("HF_TOKEN"))
440
+ info = api.repo_info(repo_id=_HF_REPO_ID, repo_type="dataset")
441
+ print(f"Repo accessible: {info.id} (private={info.private})")
442
+ except Exception as e:
443
+ print(f"Repo access check failed: {e}")
444
  _ensure_data()
445
  demo.launch()