RASMUS commited on
Commit
f866116
1 Parent(s): d16c9d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(response.text)
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: