tmt3103 commited on
Commit
7638e13
·
verified ·
1 Parent(s): 04f0526

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -29,19 +29,18 @@ def predict_yesno(context, question):
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. Paste the context (e.g., PubMed abstract).
37
- 2. Type your yes/no question.
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="Yes/No Question", lines=2, placeholder="Enter your question here...")
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")