Add Ukrainian to Translate to tab
Browse files
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 |
-
|
| 267 |
except RateLimitError as rle:
|
| 268 |
-
|
| 269 |
except ValueError as ve:
|
| 270 |
-
|
| 271 |
except InvalidRequestError as ire:
|
| 272 |
-
|
| 273 |
except Exception as e:
|
| 274 |
-
|
| 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 |
|