Nighter commited on
Commit
4beb64f
1 Parent(s): 3e7fe5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -8
app.py CHANGED
@@ -86,13 +86,15 @@ with gr.Blocks() as app:
86
  roberta_base_output = gr.Textbox(lines=3, label="RoBERTa Base")
87
  with gr.Column(scale=2):
88
  roberta_base_score = gr.Number(label="RoBERTa Base Score")
89
- with gr.Tab("Long Answer Prediction"):
90
- with gr.Row():
91
- with gr.Column():
92
- long_question_input = gr.Textbox(label="Question", placeholder="Input Question here...")
93
-
94
- submit_btn.click(fn=answer_questions, inputs=[context_input, question_input], outputs=[distilbert_base_uncased_output, distilbert_base_uncased_score, bert_base_uncased_output, bert_base_uncased_score, roberta_base_output, roberta_base_score])
95
- examples='examples'
96
- gr.Examples(examples,[context_input, question_input],[distilbert_base_uncased_output, distilbert_base_uncased_score, bert_base_uncased_output, bert_base_uncased_score, roberta_base_output, roberta_base_score],answer_questions)
 
 
97
  if __name__ == "__main__":
98
  app.launch()
 
86
  roberta_base_output = gr.Textbox(lines=3, label="RoBERTa Base")
87
  with gr.Column(scale=2):
88
  roberta_base_score = gr.Number(label="RoBERTa Base Score")
89
+
90
+ submit_btn.click(fn=answer_questions, inputs=[context_input, question_input], outputs=[distilbert_base_uncased_output, distilbert_base_uncased_score, bert_base_uncased_output, bert_base_uncased_score, roberta_base_output, roberta_base_score])
91
+ examples='examples'
92
+ gr.Examples(examples,[context_input, question_input],[distilbert_base_uncased_output, distilbert_base_uncased_score, bert_base_uncased_output, bert_base_uncased_score, roberta_base_output, roberta_base_score],answer_questions)
93
+
94
+ with gr.Tab("Long Answer Prediction"):
95
+ with gr.Row():
96
+ with gr.Column():
97
+ long_question_input = gr.Textbox(label="Question", placeholder="Input Question here...")
98
+
99
  if __name__ == "__main__":
100
  app.launch()