ImadEze commited on
Commit
496e6e1
1 Parent(s): 0bfb271

language frensh, add excel files 1

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -190,10 +190,10 @@ def handle_userinput(user_question):
190
  response_in_french = detected_lang == 'fr'
191
  # Translate input question to English
192
  input_question = user_question
193
- print("input_question", input_question)
194
- if response_in_french:
195
- translator = GoogleTranslator(source='auto', target='en')
196
- input_question = translator.translate(input_question)
197
  # Pass the translated input question to your model and get the response in English
198
 
199
  if st.session_state.conversation is None:
 
190
  response_in_french = detected_lang == 'fr'
191
  # Translate input question to English
192
  input_question = user_question
193
+ #print("input_question", input_question)
194
+ #if response_in_french:
195
+ # translator = GoogleTranslator(source='auto', target='en')
196
+ # input_question = translator.translate(input_question)
197
  # Pass the translated input question to your model and get the response in English
198
 
199
  if st.session_state.conversation is None: