Spaces:
Runtime error
Runtime error
language frensh, add excel files 1
Browse files
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 |
-
|
196 |
-
|
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:
|