Update app.py
Browse files
app.py
CHANGED
@@ -323,7 +323,7 @@ def translate_transcriptions(df, selected_translation_lang_2):
|
|
323 |
try:
|
324 |
|
325 |
usage = requests.get('https://api-free.deepl.com/v2/usage', headers=headers)
|
326 |
-
usage = json.loads(
|
327 |
try:
|
328 |
print('Usage is at: ' + str(usage['character_count']) + 'characters')
|
329 |
except Exception as e:
|
|
|
323 |
try:
|
324 |
|
325 |
usage = requests.get('https://api-free.deepl.com/v2/usage', headers=headers)
|
326 |
+
usage = json.loads(usage.text)
|
327 |
try:
|
328 |
print('Usage is at: ' + str(usage['character_count']) + 'characters')
|
329 |
except Exception as e:
|