az1fr3 commited on
Commit
c9bb910
·
verified ·
1 Parent(s): 204db29

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -114,8 +114,9 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
114
 
115
  def run_and_submit_all(profile: gr.OAuthProfile | None):
116
  """
117
- Fetches all questions, runs our `agente_principal` on them, and submits the answers.
118
  """
 
119
  if not profile:
120
  return "Por favor, inicia sesión con tu perfil de Hugging Face.", pd.DataFrame()
121
 
@@ -125,7 +126,8 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
125
  username = profile.username
126
  space_id = os.getenv("SPACE_ID")
127
  code_link = f"https://huggingface.co/spaces/{space_id}" if space_id else "No se pudo obtener el link al Space."
128
- print(f"Usuario: {username}, Enlace al Código: {code_link}")
 
129
 
130
  # 1. Obtener todas las preguntas del examen
131
  questions_url = f"{DEFAULT_API_URL}/questions"
 
114
 
115
  def run_and_submit_all(profile: gr.OAuthProfile | None):
116
  """
117
+ Fetches all questions, runs `agente_principal` on them, submits the answers.
118
  """
119
+ # El código de esta función empieza en este nivel de indentación
120
  if not profile:
121
  return "Por favor, inicia sesión con tu perfil de Hugging Face.", pd.DataFrame()
122
 
 
126
  username = profile.username
127
  space_id = os.getenv("SPACE_ID")
128
  code_link = f"https://huggingface.co/spaces/{space_id}" if space_id else "No se pudo obtener el link al Space."
129
+
130
+ print(f"Iniciando evaluación para el usuario: {username}")
131
 
132
  # 1. Obtener todas las preguntas del examen
133
  questions_url = f"{DEFAULT_API_URL}/questions"