Sborole commited on
Commit
8a03a8c
·
verified ·
1 Parent(s): de7fc8e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -189,8 +189,13 @@ if __name__ == "__main__":
189
  print("\n" + "-"*30 + " App Starting " + "-"*30)
190
  # Check for SPACE_HOST and SPACE_ID at startup for information
191
  space_host_startup = os.getenv("SPACE_HOST")
 
192
  space_id_startup = os.getenv("SPACE_ID") # Get SPACE_ID at startup
 
 
193
 
 
 
194
  data_dir = snapshot_download(
195
  repo_id="gaia-benchmark/GAIA",
196
  repo_type="dataset"
 
189
  print("\n" + "-"*30 + " App Starting " + "-"*30)
190
  # Check for SPACE_HOST and SPACE_ID at startup for information
191
  space_host_startup = os.getenv("SPACE_HOST")
192
+ print(space_host_startup)
193
  space_id_startup = os.getenv("SPACE_ID") # Get SPACE_ID at startup
194
+ print(space_id_startup)
195
+ ACCESS_TOKEN = os.getenv("HF_KEY")
196
 
197
+ if not ACCESS_TOKEN:
198
+ raise ValueError("HF_TOKEN environment variable is not set. Please set it in Space Secrets.")
199
  data_dir = snapshot_download(
200
  repo_id="gaia-benchmark/GAIA",
201
  repo_type="dataset"