Spaces:
Configuration error
Configuration error
import streamlit as st | |
from rag_pipeline import load_rag_pipeline, ask_question | |
st.set_page_config(page_title="Medical QA Assistant π", layout="centered") | |
st.title("π§ Medical QA Assistant") | |
st.markdown("Ask medical questions and get answers based on PubMed research.") | |
query = st.text_input("Enter your medical question:") | |
if query: | |
with st.spinner("Searching..."): | |
pipe = load_rag_pipeline() | |
result = ask_question(pipe, query) | |
st.markdown("### π‘ Answer") | |
st.write(result) | |