annaJazayeri commited on
Commit
d8d362e
·
verified ·
1 Parent(s): caa3677

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -222,10 +222,11 @@ def qa_pipeline(question: str, top_k: int = 2):
222
  # ---------------------------------------------------
223
  with gr.Blocks() as demo:
224
  gr.Markdown(
225
- "# 🧬 PubMedQA Biomedical Question Answering\n"
226
- "Ask a biomedical question. The app retrieves PubMed-style abstracts with a "
227
- "dual-encoder and then generates a simple answer using GPT-4o-mini, grounded "
228
- "in the retrieved evidence."
 
229
  )
230
 
231
  with gr.Row():
 
222
  # ---------------------------------------------------
223
  with gr.Blocks() as demo:
224
  gr.Markdown(
225
+ "# PubMedQA - Biomedical Question Answering\n"
226
+ "Ask any biomedical question. The app searches the PubMedQA dataset with a "
227
+ "dual-encoder, then uses GPT-4o-mini to generate an easy-to-understand answer "
228
+ "based **only** on the retrieved PubMedQA passages.\n\n"
229
+ "It also displays the most similar PubMedQA abstracts below as evidence.\n\n"
230
  )
231
 
232
  with gr.Row():