Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
77 |
with gr.Column(scale=2):
|
78 |
-
|
79 |
with gr.Row():
|
80 |
with gr.Column(scale=6):
|
81 |
-
|
82 |
with gr.Column(scale=2):
|
83 |
-
|
84 |
with gr.Row():
|
85 |
with gr.Column(scale=6):
|
86 |
-
|
87 |
with gr.Column(scale=2):
|
88 |
-
|
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,
|
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__":
|