Update app.py
Browse files
app.py
CHANGED
|
@@ -128,7 +128,7 @@ def submit_answers(api_url: str, username: str, code_link: str, answers: list[di
|
|
| 128 |
return resp.json()
|
| 129 |
|
| 130 |
# ββββββββββββββββ Gradio Evaluation Logic ββββββββββββββββ
|
| 131 |
-
def run_and_submit_all(profile: Optional[gr.OAuthProfile]):
|
| 132 |
if profile:
|
| 133 |
if isinstance(profile, dict):
|
| 134 |
username = profile.get("preferred_username", "").strip()
|
|
@@ -212,7 +212,7 @@ with gr.Blocks() as demo:
|
|
| 212 |
|
| 213 |
run_button.click(
|
| 214 |
fn=run_and_submit_all,
|
| 215 |
-
inputs=[gr.
|
| 216 |
outputs=[status_output, results_table]
|
| 217 |
)
|
| 218 |
|
|
|
|
| 128 |
return resp.json()
|
| 129 |
|
| 130 |
# ββββββββββββββββ Gradio Evaluation Logic ββββββββββββββββ
|
| 131 |
+
def run_and_submit_all(profile: Optional[gr.OAuthProfile] = None, *args):
|
| 132 |
if profile:
|
| 133 |
if isinstance(profile, dict):
|
| 134 |
username = profile.get("preferred_username", "").strip()
|
|
|
|
| 212 |
|
| 213 |
run_button.click(
|
| 214 |
fn=run_and_submit_all,
|
| 215 |
+
inputs=[gr.OAuthProfile()],
|
| 216 |
outputs=[status_output, results_table]
|
| 217 |
)
|
| 218 |
|