vishwask commited on
Commit
5280e16
1 Parent(s): aaa67c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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"):