Update app.py
Browse files
app.py
CHANGED
|
@@ -182,7 +182,6 @@ def chatbot_with_voice(input_audio, history=[], domain="corismoney", model_name=
|
|
| 182 |
)
|
| 183 |
user_message = transcription.text
|
| 184 |
detected_lang = transcription.language
|
| 185 |
-
print("detected language "+detected_lang)
|
| 186 |
|
| 187 |
# Liste des langues supportées par gTTS
|
| 188 |
supported_langs = ['af', 'ar', 'bn', 'bs', 'ca', 'cs', 'cy', 'da', 'de', 'el', 'en', 'eo', 'es', 'et', 'fi',
|
|
@@ -251,6 +250,7 @@ def extract_identity_card_info(image):
|
|
| 251 |
max_tokens=500,
|
| 252 |
temperature=0
|
| 253 |
)
|
|
|
|
| 254 |
return response.choices[0].message.content
|
| 255 |
|
| 256 |
except Exception as e:
|
|
|
|
| 182 |
)
|
| 183 |
user_message = transcription.text
|
| 184 |
detected_lang = transcription.language
|
|
|
|
| 185 |
|
| 186 |
# Liste des langues supportées par gTTS
|
| 187 |
supported_langs = ['af', 'ar', 'bn', 'bs', 'ca', 'cs', 'cy', 'da', 'de', 'el', 'en', 'eo', 'es', 'et', 'fi',
|
|
|
|
| 250 |
max_tokens=500,
|
| 251 |
temperature=0
|
| 252 |
)
|
| 253 |
+
print(response)
|
| 254 |
return response.choices[0].message.content
|
| 255 |
|
| 256 |
except Exception as e:
|