Upload app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,8 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
52 |
|
53 |
# 5. Submit
|
54 |
logger.info(f"Submitting {len(answers_payload)} answers to: {api_client.submit_url}")
|
55 |
-
api_client.
|
|
|
56 |
|
57 |
def run_and_submit_one(profile: gr.OAuthProfile | None):
|
58 |
"""
|
@@ -93,7 +94,8 @@ def run_and_submit_one(profile: gr.OAuthProfile | None):
|
|
93 |
|
94 |
# 5. Submit
|
95 |
logger.info(f"Submitting {len(answers_payload)} answers to: {api_client.submit_url}")
|
96 |
-
api_client.submit_answers(submission_data, results_log)
|
|
|
97 |
|
98 |
def build_gradio_interface():
|
99 |
# --- Build Gradio Interface using Blocks ---
|
|
|
52 |
|
53 |
# 5. Submit
|
54 |
logger.info(f"Submitting {len(answers_payload)} answers to: {api_client.submit_url}")
|
55 |
+
status_message, results_df = api_client.submit_answers(submission_data, results_log)
|
56 |
+
return status_message, results_df
|
57 |
|
58 |
def run_and_submit_one(profile: gr.OAuthProfile | None):
|
59 |
"""
|
|
|
94 |
|
95 |
# 5. Submit
|
96 |
logger.info(f"Submitting {len(answers_payload)} answers to: {api_client.submit_url}")
|
97 |
+
status_message, results_df = api_client.submit_answers(submission_data, results_log)
|
98 |
+
return status_message, results_df
|
99 |
|
100 |
def build_gradio_interface():
|
101 |
# --- Build Gradio Interface using Blocks ---
|