Update app.py
Browse files
app.py
CHANGED
|
@@ -182,7 +182,7 @@ if prompt := st.chat_input("How can I help you today?"):
|
|
| 182 |
message_placeholder = st.empty()
|
| 183 |
full_response = ""
|
| 184 |
message_history = "\n".join(list(get_message_history())[-3:])
|
| 185 |
-
result = qa_chain(
|
| 186 |
output = [result['result']]
|
| 187 |
|
| 188 |
def generate_pdf():
|
|
@@ -236,7 +236,7 @@ if prompt := st.chat_input("How can I help you today?"):
|
|
| 236 |
# time.sleep(0.1)
|
| 237 |
|
| 238 |
for item in output:
|
| 239 |
-
full_response += item
|
| 240 |
message_placeholder.markdown(full_response + "▌")
|
| 241 |
message_placeholder.markdown(full_response)
|
| 242 |
# message_placeholder.markdown(result['source_documents'])
|
|
|
|
| 182 |
message_placeholder = st.empty()
|
| 183 |
full_response = ""
|
| 184 |
message_history = "\n".join(list(get_message_history())[-3:])
|
| 185 |
+
result = qa_chain(prompt)
|
| 186 |
output = [result['result']]
|
| 187 |
|
| 188 |
def generate_pdf():
|
|
|
|
| 236 |
# time.sleep(0.1)
|
| 237 |
|
| 238 |
for item in output:
|
| 239 |
+
full_response += english_to_hindi(item)[0]
|
| 240 |
message_placeholder.markdown(full_response + "▌")
|
| 241 |
message_placeholder.markdown(full_response)
|
| 242 |
# message_placeholder.markdown(result['source_documents'])
|