Toumaima commited on
Commit
07548b5
·
verified ·
1 Parent(s): d50ae44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -65,15 +65,13 @@ class BasicAgent:
65
  print("Detected likely reversed riddle.")
66
  return self.solve_riddle(question)
67
  return "FINAL ANSWER: NOT_A_RIDDLE"
68
-
69
- def run_and_submit_all( profile: gr.OAuthProfile | None):
70
  """
71
  Fetches all questions, runs the BasicAgent on them, submits all answers,
72
  and displays the results.
73
  """
74
  # --- Determine HF Space Runtime URL and Repo URL ---
75
  space_id = os.getenv("SPACE_ID") # Get the SPACE_ID for sending link to the code
76
-
77
  if profile:
78
  username= f"{profile.username}"
79
  print(f"User logged in: {username}")
@@ -239,3 +237,5 @@ class BasicAgent:
239
 
240
  print("Launching Gradio Interface for Basic Agent Evaluation...")
241
  demo.launch(debug=True, share=False)
 
 
 
65
  print("Detected likely reversed riddle.")
66
  return self.solve_riddle(question)
67
  return "FINAL ANSWER: NOT_A_RIDDLE"
68
+ def run_and_submit_all( profile: gr.OAuthProfile | None):
 
69
  """
70
  Fetches all questions, runs the BasicAgent on them, submits all answers,
71
  and displays the results.
72
  """
73
  # --- Determine HF Space Runtime URL and Repo URL ---
74
  space_id = os.getenv("SPACE_ID") # Get the SPACE_ID for sending link to the code
 
75
  if profile:
76
  username= f"{profile.username}"
77
  print(f"User logged in: {username}")
 
237
 
238
  print("Launching Gradio Interface for Basic Agent Evaluation...")
239
  demo.launch(debug=True, share=False)
240
+
241
+