Sborole commited on
Commit
d39fe59
·
verified ·
1 Parent(s): c57654c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -39,10 +39,12 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
39
  print(f"Error instantiating agent: {e}")
40
  return f"Error initializing agent: {e}", None
41
  # In the case of an app running as a hugging Face space, this link points toward your codebase ( usefull for others so please keep it public)
42
- ACCESS_TOKEN = os.getenv("HF_KEY")
43
 
44
  if not ACCESS_TOKEN:
45
  raise ValueError("HF_TOKEN environment variable is not set. Please set it in Space Secrets.")
 
 
46
  data_dir = snapshot_download(
47
  repo_id="gaia-benchmark/GAIA",
48
  repo_type="dataset"
 
39
  print(f"Error instantiating agent: {e}")
40
  return f"Error initializing agent: {e}", None
41
  # In the case of an app running as a hugging Face space, this link points toward your codebase ( usefull for others so please keep it public)
42
+ ACCESS_TOKEN = os.getenv("HF_TOKEN")
43
 
44
  if not ACCESS_TOKEN:
45
  raise ValueError("HF_TOKEN environment variable is not set. Please set it in Space Secrets.")
46
+ else:
47
+ print("Key is good")
48
  data_dir = snapshot_download(
49
  repo_id="gaia-benchmark/GAIA",
50
  repo_type="dataset"