Modify more messages
Browse files- app.py +5 -0
- videos/tempfile.mp4 +2 -2
app.py
CHANGED
|
@@ -88,6 +88,8 @@ def run_chain(chain, inp, capture_hidden_text):
|
|
| 88 |
output = chain.run(input=inp)
|
| 89 |
except AuthenticationError as ae:
|
| 90 |
error_msg = AUTH_ERR_MSG
|
|
|
|
|
|
|
| 91 |
except InvalidRequestError as ire:
|
| 92 |
error_msg = "\n\n" + BUG_FOUND_MSG + " Here are the details: InvalidRequestError, " + str(ire)
|
| 93 |
except Exception as e:
|
|
@@ -122,6 +124,9 @@ def run_chain(chain, inp, capture_hidden_text):
|
|
| 122 |
except AuthenticationError as ae:
|
| 123 |
output = AUTH_ERR_MSG
|
| 124 |
print("\nAuthenticationError: ", ae)
|
|
|
|
|
|
|
|
|
|
| 125 |
except InvalidRequestError as ire:
|
| 126 |
output = BUG_FOUND_MSG + " Here are the details: InvalidRequestError, " + str(ire)
|
| 127 |
print("\nInvalidRequestError: ", ire)
|
|
|
|
| 88 |
output = chain.run(input=inp)
|
| 89 |
except AuthenticationError as ae:
|
| 90 |
error_msg = AUTH_ERR_MSG
|
| 91 |
+
except ValueError as ve:
|
| 92 |
+
error_msg = "\n\nValueError, " + str(ve)
|
| 93 |
except InvalidRequestError as ire:
|
| 94 |
error_msg = "\n\n" + BUG_FOUND_MSG + " Here are the details: InvalidRequestError, " + str(ire)
|
| 95 |
except Exception as e:
|
|
|
|
| 124 |
except AuthenticationError as ae:
|
| 125 |
output = AUTH_ERR_MSG
|
| 126 |
print("\nAuthenticationError: ", ae)
|
| 127 |
+
except ValueError as ve:
|
| 128 |
+
output = "ValueError, " + str(ve)
|
| 129 |
+
print("\nValueError: ", ve)
|
| 130 |
except InvalidRequestError as ire:
|
| 131 |
output = BUG_FOUND_MSG + " Here are the details: InvalidRequestError, " + str(ire)
|
| 132 |
print("\nInvalidRequestError: ", ire)
|
videos/tempfile.mp4
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:faa87e7f6fe17256601a99f3b7c40ad18dc06c8e9eb366a97c1c8080b1e1a1ef
|
| 3 |
+
size 166113
|