sonali-tamhankar
commited on
Commit
•
edd3984
1
Parent(s):
a0ce053
Changed question to QAPI
Browse files
app.py
CHANGED
@@ -44,10 +44,10 @@ with st.sidebar:
|
|
44 |
""") #, unsafe_allow_html=True)
|
45 |
st.write("This is tool is meant to assist healthcare workers to the extent it can. Please note that the page numbers may be occasionally slightly off, use the matching excerpts to find the reference if this happens.")
|
46 |
|
47 |
-
st.markdown("**Ask your question and :red[click 'Find
|
48 |
-
prompt = st.text_input("e.g.
|
49 |
|
50 |
-
if (st.button("Find
|
51 |
answer = qa_chain({"query":prompt})
|
52 |
|
53 |
n = len(answer['source_documents'])
|
|
|
44 |
""") #, unsafe_allow_html=True)
|
45 |
st.write("This is tool is meant to assist healthcare workers to the extent it can. Please note that the page numbers may be occasionally slightly off, use the matching excerpts to find the reference if this happens.")
|
46 |
|
47 |
+
st.markdown("**Ask your question and :red[click 'Find excerpts'.]**")
|
48 |
+
prompt = st.text_input("e.g. What are the rules regarding a Quality Improvement, or QAPI program?")
|
49 |
|
50 |
+
if (st.button("Find excerpts")):
|
51 |
answer = qa_chain({"query":prompt})
|
52 |
|
53 |
n = len(answer['source_documents'])
|