sergiosampayob commited on
Commit
1db94cf
·
1 Parent(s): 6d0652f

fix agent_code typo

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -223,7 +223,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
223
  and displays the results.
224
  """
225
  # --- Determine HF Space Runtime URL and Repo URL ---
226
- space_id = os.getenv("SPACE_ID") # Get the SPACE_ID for sending link to the code
227
 
228
  if profile:
229
  username= f"{profile.username}"
@@ -290,7 +290,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
290
  return "Agent did not produce any answers to submit.", pd.DataFrame(results_log)
291
 
292
  # 4. Prepare Submission
293
- submission_data = {"username": username.strip(), "agent_code": "", "answers": answers_payload}
294
  status_update = f"Agent finished. Submitting {len(answers_payload)} answers for user '{username}'..."
295
  print(status_update)
296
 
 
223
  and displays the results.
224
  """
225
  # --- Determine HF Space Runtime URL and Repo URL ---
226
+ space_id = os.getenv("SPACE_ID", "sergiosampayo/Final_Assignment_Template") # Get the SPACE_ID for sending link to the code
227
 
228
  if profile:
229
  username= f"{profile.username}"
 
290
  return "Agent did not produce any answers to submit.", pd.DataFrame(results_log)
291
 
292
  # 4. Prepare Submission
293
+ submission_data = {"username": username.strip(), "agent_code": agent_code, "answers": answers_payload}
294
  status_update = f"Agent finished. Submitting {len(answers_payload)} answers for user '{username}'..."
295
  print(status_update)
296