Spaces:
Sleeping
Sleeping
LeVinh commited on
Commit ·
1a45b53
1
Parent(s): d39c90d
hardcoded spaceid, do not imitate
Browse files
eval.py
CHANGED
|
@@ -68,7 +68,10 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 68 |
"""
|
| 69 |
# --- Determine HF Space Runtime URL and Repo URL ---
|
| 70 |
# Fallback to hardcoded ID if env var is missing (e.g. in Docker)
|
| 71 |
-
space_id = os.getenv("SPACE_ID", "vinhle/First_agent_template")
|
|
|
|
|
|
|
|
|
|
| 72 |
|
| 73 |
if profile:
|
| 74 |
username= f"{profile.username}"
|
|
|
|
| 68 |
"""
|
| 69 |
# --- Determine HF Space Runtime URL and Repo URL ---
|
| 70 |
# Fallback to hardcoded ID if env var is missing (e.g. in Docker)
|
| 71 |
+
space_id = os.getenv("SPACE_ID", "vinhle/First_agent_template")
|
| 72 |
+
|
| 73 |
+
# CRITICAL FIX: Force set the environment variable so Gradio sees it
|
| 74 |
+
os.environ["SPACE_ID"] = space_id
|
| 75 |
|
| 76 |
if profile:
|
| 77 |
username= f"{profile.username}"
|