ali121300 commited on
Commit
a392478
1 Parent(s): 5838c96

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -96,6 +96,8 @@ def main():
96
 
97
  st.header("Chat Bot PDFs :books:")
98
  user_question = st.text_input("Ask a question about your documents:")
 
 
99
 
100
 
101
  if user_question:
 
96
 
97
  st.header("Chat Bot PDFs :books:")
98
  user_question = st.text_input("Ask a question about your documents:")
99
+ translator = GoogleTranslator(source='persian', target='english')
100
+ user_question = translator.translate(user_question)
101
 
102
 
103
  if user_question: