pedrogaprieto commited on
Commit
b21df9b
·
verified ·
1 Parent(s): 24ab472

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -84,7 +84,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
84
 
85
 
86
  # reduce the number of questions
87
- questions_data = questions_data[:2]
88
 
89
 
90
  if not questions_data:
@@ -133,7 +133,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
133
  return status_update, results_df
134
 
135
  # 5. Submit
136
- """
137
  print(f"Submitting {len(answers_payload)} answers to: {submit_url}")
138
  try:
139
  response = requests.post(submit_url, json=submission_data, timeout=60)
@@ -175,7 +175,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
175
  print(status_message)
176
  results_df = pd.DataFrame(results_log)
177
  return status_message, results_df
178
- """
179
 
180
  # --- Build Gradio Interface using Blocks ---
181
  with gr.Blocks() as demo:
 
84
 
85
 
86
  # reduce the number of questions
87
+ # questions_data = questions_data[:2]
88
 
89
 
90
  if not questions_data:
 
133
  return status_update, results_df
134
 
135
  # 5. Submit
136
+
137
  print(f"Submitting {len(answers_payload)} answers to: {submit_url}")
138
  try:
139
  response = requests.post(submit_url, json=submission_data, timeout=60)
 
175
  print(status_message)
176
  results_df = pd.DataFrame(results_log)
177
  return status_message, results_df
178
+
179
 
180
  # --- Build Gradio Interface using Blocks ---
181
  with gr.Blocks() as demo: