issamlaradji commited on
Commit
7a94071
·
verified ·
1 Parent(s): b808b3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -47,6 +47,7 @@ def create_gradio_interface():
47
  submit_button = gr.Button("Submit Answer")
48
  result = gr.Textbox(label="Result", interactive=False)
49
 
 
50
  submit_button.click(check_quiz_answer, inputs=[selected_answer, correct_answer], outputs=result)
51
 
52
  return demo
 
47
  submit_button = gr.Button("Submit Answer")
48
  result = gr.Textbox(label="Result", interactive=False)
49
 
50
+ # Here we fix the issue by passing the component objects instead of just values
51
  submit_button.click(check_quiz_answer, inputs=[selected_answer, correct_answer], outputs=result)
52
 
53
  return demo