George Sergia commited on
Commit
7fb75e4
·
1 Parent(s): 594d1d1

Quick test

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -28,6 +28,10 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
28
  HF_TOKEN = os.getenv("HF_TOKEN")
29
  if HF_TOKEN is not None:
30
  print(str(hash(HF_TOKEN)))
 
 
 
 
31
 
32
  return "Please Login to Hugging Face with the button.", None
33
  # --- Determine HF Space Runtime URL and Repo URL ---
 
28
  HF_TOKEN = os.getenv("HF_TOKEN")
29
  if HF_TOKEN is not None:
30
  print(str(hash(HF_TOKEN)))
31
+
32
+ HF_TOKEN = os.environ.get("HF_TOKEN")
33
+ if HF_TOKEN is not None:
34
+ print(str(hash(HF_TOKEN)))
35
 
36
  return "Please Login to Hugging Face with the button.", None
37
  # --- Determine HF Space Runtime URL and Repo URL ---