Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
|
|
|
|
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()
|