Nighter commited on
Commit
50caa97
1 Parent(s): 5901e15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -73,25 +73,25 @@ with gr.Blocks() as app:
73
  with gr.Column():
74
  with gr.Row():
75
  with gr.Column(scale=6):
76
- short_answer_output = gr.Textbox(lines=3, label="Distil BERT Base Uncased")
77
  with gr.Column(scale=2):
78
- short_score_output = gr.Number(label="Distil BERT Base Uncased Score")
79
  with gr.Row():
80
  with gr.Column(scale=6):
81
- long_answer_output = gr.Textbox(lines=3, label="BERT Base Uncased")
82
  with gr.Column(scale=2):
83
- long_score_output = gr.Number(label="BERT Base Uncased Score")
84
  with gr.Row():
85
  with gr.Column(scale=6):
86
- long_answer_output = gr.Textbox(lines=3, label="RoBERTa Base")
87
  with gr.Column(scale=2):
88
- long_score_output = 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_output, bert_base_uncased_output, bert_base_uncased_output, roberta_base_output, roberta_base_output])
95
  examples='examples'
96
  gr.Examples(examples,[context_input, question_input],[short_answer_output, short_score_output, long_answer_output, long_score_output],answer_questions)
97
  if __name__ == "__main__":
 
73
  with gr.Column():
74
  with gr.Row():
75
  with gr.Column(scale=6):
76
+ distilbert_base_uncased_output = gr.Textbox(lines=3, label="Distil BERT Base Uncased")
77
  with gr.Column(scale=2):
78
+ distilbert_base_uncased_score = gr.Number(label="Distil BERT Base Uncased Score")
79
  with gr.Row():
80
  with gr.Column(scale=6):
81
+ bert_base_uncased_output = gr.Textbox(lines=3, label="BERT Base Uncased")
82
  with gr.Column(scale=2):
83
+ bert_base_uncased_score = gr.Number(label="BERT Base Uncased Score")
84
  with gr.Row():
85
  with gr.Column(scale=6):
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],[short_answer_output, short_score_output, long_answer_output, long_score_output],answer_questions)
97
  if __name__ == "__main__":