Nighter commited on
Commit
9170818
1 Parent(s): dcb0c9c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -122,14 +122,15 @@ with gr.Blocks() as app:
122
  answer1_input = gr.Textbox(lines=3,label="Answer 1", placeholder="Enter answer 1")
123
  answer2_input = gr.Textbox(lines=3,label="Answer 2", placeholder="Enter answer 2")
124
  submit_btn_long = gr.Button("Submit")
 
 
125
  with gr.Column():
126
  correct_answer_output = gr.Textbox(lines=3,label="Correct Answer")
127
  score_output = gr.Number(label="Score")
128
 
129
  submit_btn_long.click(fn=predict_correct_answer, inputs=[long_question_input, answer1_input, answer2_input],
130
  outputs=[correct_answer_output, score_output])
131
- gr.ClearButton([long_question_input, answer1_input, answer2_input])
132
-
133
 
134
  if __name__ == "__main__":
135
  app.launch()
 
122
  answer1_input = gr.Textbox(lines=3,label="Answer 1", placeholder="Enter answer 1")
123
  answer2_input = gr.Textbox(lines=3,label="Answer 2", placeholder="Enter answer 2")
124
  submit_btn_long = gr.Button("Submit")
125
+ gr.ClearButton([long_question_input, answer1_input, answer2_input])
126
+
127
  with gr.Column():
128
  correct_answer_output = gr.Textbox(lines=3,label="Correct Answer")
129
  score_output = gr.Number(label="Score")
130
 
131
  submit_btn_long.click(fn=predict_correct_answer, inputs=[long_question_input, answer1_input, answer2_input],
132
  outputs=[correct_answer_output, score_output])
133
+
 
134
 
135
  if __name__ == "__main__":
136
  app.launch()