Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,7 +33,7 @@ chain = ConversationalRetrievalChain.from_llm(llm=llm,chain_type='stuff',
|
|
| 33 |
retriever=vector_store.as_retriever(search_kwargs={"k":2}),
|
| 34 |
memory=memory)
|
| 35 |
|
| 36 |
-
st.title("
|
| 37 |
def conversation_chat(query):
|
| 38 |
result = chain({"question": query, "chat_history": st.session_state['history']})
|
| 39 |
st.session_state['history'].append((query, result["answer"]))
|
|
@@ -55,7 +55,7 @@ def display_chat_history():
|
|
| 55 |
|
| 56 |
with container:
|
| 57 |
with st.form(key='my_form', clear_on_submit=True):
|
| 58 |
-
user_input = st.text_input("Question:", placeholder="
|
| 59 |
submit_button = st.form_submit_button(label='Send')
|
| 60 |
|
| 61 |
if submit_button and user_input:
|
|
|
|
| 33 |
retriever=vector_store.as_retriever(search_kwargs={"k":2}),
|
| 34 |
memory=memory)
|
| 35 |
|
| 36 |
+
st.title("Medical Chatbot ")
|
| 37 |
def conversation_chat(query):
|
| 38 |
result = chain({"question": query, "chat_history": st.session_state['history']})
|
| 39 |
st.session_state['history'].append((query, result["answer"]))
|
|
|
|
| 55 |
|
| 56 |
with container:
|
| 57 |
with st.form(key='my_form', clear_on_submit=True):
|
| 58 |
+
user_input = st.text_input("Question:", placeholder="Tell me how you are feeling", key='input')
|
| 59 |
submit_button = st.form_submit_button(label='Send')
|
| 60 |
|
| 61 |
if submit_button and user_input:
|