JLW commited on
Commit
b7c2c22
·
1 Parent(s): 03de266

Add Ukrainian to Translate to tab

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -263,15 +263,15 @@ def run_chain(chain, inp, capture_hidden_text):
263
  try:
264
  output = chain.run(input=inp)
265
  except AuthenticationError as ae:
266
- error_msg = AUTH_ERR_MSG
267
  except RateLimitError as rle:
268
- error_msg = "\n\nRateLimitError."
269
  except ValueError as ve:
270
- error_msg = "\n\nValueError."
271
  except InvalidRequestError as ire:
272
- error_msg = "\n\nInvalidRequestError."
273
  except Exception as e:
274
- error_msg = "\n\nException."
275
 
276
  return output, hidden_text
277
 
 
263
  try:
264
  output = chain.run(input=inp)
265
  except AuthenticationError as ae:
266
+ output = AUTH_ERR_MSG
267
  except RateLimitError as rle:
268
+ output = "\n\nRateLimitError."
269
  except ValueError as ve:
270
+ output = "\n\nValueError."
271
  except InvalidRequestError as ire:
272
+ output = "\n\nInvalidRequestError."
273
  except Exception as e:
274
+ output = "\n\nException."
275
 
276
  return output, hidden_text
277