Spaces:
Sleeping
Sleeping
uncomment space_id for submission case
Browse files- simuGAIA.py +2 -2
simuGAIA.py
CHANGED
@@ -184,7 +184,7 @@ def run_simuGAIA_all( profile: gr.OAuthProfile | None, submit: Optional[bool] =
|
|
184 |
and displays the results.
|
185 |
"""
|
186 |
# --- Determine HF Space Runtime URL and Repo URL for submission ---
|
187 |
-
|
188 |
|
189 |
if profile:
|
190 |
username= f"{profile.username}"
|
@@ -195,7 +195,7 @@ def run_simuGAIA_all( profile: gr.OAuthProfile | None, submit: Optional[bool] =
|
|
195 |
|
196 |
api_url = DEFAULT_API_URL
|
197 |
questions_url = f"{api_url}/questions"
|
198 |
-
|
199 |
|
200 |
# 1. Instantiate and init Agent ( modify this part to create your agent)
|
201 |
agent = init_agent()
|
|
|
184 |
and displays the results.
|
185 |
"""
|
186 |
# --- Determine HF Space Runtime URL and Repo URL for submission ---
|
187 |
+
space_id = os.getenv("SPACE_ID") # Get the SPACE_ID for sending link to the code
|
188 |
|
189 |
if profile:
|
190 |
username= f"{profile.username}"
|
|
|
195 |
|
196 |
api_url = DEFAULT_API_URL
|
197 |
questions_url = f"{api_url}/questions"
|
198 |
+
submit_url = f"{api_url}/submit"
|
199 |
|
200 |
# 1. Instantiate and init Agent ( modify this part to create your agent)
|
201 |
agent = init_agent()
|