pathmohd123 commited on
Commit
9266278
Β·
verified Β·
1 Parent(s): b86ce06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.State()],
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