ali121300 commited on
Commit
6b98e12
1 Parent(s): 4a38ec6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -154,8 +154,9 @@ def main():
154
  st.header("Chat Bot PDFs :books:")
155
  user_question1 = st.text_input("Ask a question about your documents:")
156
  user_question2=sentences_f(sentence=user_question1,df2=df2)
 
157
  translator = GoogleTranslator(source='persian', target='english')
158
- user_question = translator.translate(user_question2)
159
  if st.button("Answer"):
160
  with st.spinner("Answering"):
161
  handle_userinput(user_question)
 
154
  st.header("Chat Bot PDFs :books:")
155
  user_question1 = st.text_input("Ask a question about your documents:")
156
  user_question2=sentences_f(sentence=user_question1,df2=df2)
157
+ st.write(user_question2)
158
  translator = GoogleTranslator(source='persian', target='english')
159
+ user_question = translator.translate(user_question1)
160
  if st.button("Answer"):
161
  with st.spinner("Answering"):
162
  handle_userinput(user_question)