Update app.py
Browse files
app.py
CHANGED
@@ -176,7 +176,7 @@ qa_chain = load_model(docs)
|
|
176 |
if prompt := st.chat_input("How can I help you today?"):
|
177 |
st.session_state.messages.append({"role": "user", "content": prompt})
|
178 |
with st.chat_message("user"):
|
179 |
-
english_prompt = hindi_to_english(prompt)
|
180 |
st.markdown(english_prompt)
|
181 |
with st.chat_message("assistant"):
|
182 |
with st.spinner(text="Looking for relevant answer"):
|
|
|
176 |
if prompt := st.chat_input("How can I help you today?"):
|
177 |
st.session_state.messages.append({"role": "user", "content": prompt})
|
178 |
with st.chat_message("user"):
|
179 |
+
english_prompt = hindi_to_english(prompt)[0]
|
180 |
st.markdown(english_prompt)
|
181 |
with st.chat_message("assistant"):
|
182 |
with st.spinner(text="Looking for relevant answer"):
|