Update app.py
Browse files
app.py
CHANGED
@@ -206,7 +206,7 @@ def translate_transcriptions(df, selected_translation_lang_2):
|
|
206 |
|
207 |
data = {'text': text_combined,
|
208 |
'tag_spitting': 'xml',
|
209 |
-
'target_lang':
|
210 |
}
|
211 |
response = requests.post('https://api-free.deepl.com/v2/translate', headers=headers, data=data)
|
212 |
|
|
|
206 |
|
207 |
data = {'text': text_combined,
|
208 |
'tag_spitting': 'xml',
|
209 |
+
'target_lang': DeepL_language_codes_for_translation.get(selected_translation_lang_2)
|
210 |
}
|
211 |
response = requests.post('https://api-free.deepl.com/v2/translate', headers=headers, data=data)
|
212 |
|