Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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("
|
| 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"
|