Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,19 +29,18 @@ def predict_yesno(context, question):
|
|
| 29 |
|
| 30 |
# Gradio
|
| 31 |
with gr.Blocks() as demo:
|
| 32 |
-
gr.Markdown("
|
| 33 |
gr.Markdown("""
|
| 34 |
This demo uses a fine-tuned BERT model to answer biomedical yes/no questions based on context.<br>
|
| 35 |
**Instructions**:
|
| 36 |
-
1.
|
| 37 |
-
2.
|
| 38 |
-
3. Click 'Predict' to get the answer.
|
| 39 |
""")
|
| 40 |
|
| 41 |
with gr.Row():
|
| 42 |
with gr.Column():
|
| 43 |
context_input = gr.Textbox(label="Context", lines=8, placeholder="Paste biomedical context here...")
|
| 44 |
-
question_input = gr.Textbox(label="
|
| 45 |
predict_button = gr.Button("Predict")
|
| 46 |
with gr.Column():
|
| 47 |
output = gr.Textbox(label="Prediction")
|
|
|
|
| 29 |
|
| 30 |
# Gradio
|
| 31 |
with gr.Blocks() as demo:
|
| 32 |
+
gr.Markdown("BioASQ Yes/No Question Answering")
|
| 33 |
gr.Markdown("""
|
| 34 |
This demo uses a fine-tuned BERT model to answer biomedical yes/no questions based on context.<br>
|
| 35 |
**Instructions**:
|
| 36 |
+
1. Type the context and your yes/no question.
|
| 37 |
+
2. Click 'Predict' to get the answer.
|
|
|
|
| 38 |
""")
|
| 39 |
|
| 40 |
with gr.Row():
|
| 41 |
with gr.Column():
|
| 42 |
context_input = gr.Textbox(label="Context", lines=8, placeholder="Paste biomedical context here...")
|
| 43 |
+
question_input = gr.Textbox(label="Question", lines=2, placeholder="Enter your question here...")
|
| 44 |
predict_button = gr.Button("Predict")
|
| 45 |
with gr.Column():
|
| 46 |
output = gr.Textbox(label="Prediction")
|