JLW commited on
Commit
201e514
·
1 Parent(s): 618e0ce

Modify more messages

Browse files
Files changed (2) hide show
  1. app.py +5 -0
  2. 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:8ef0d573ce48a260dff71f5d8a94ce3dd7f4aa1c8dac079de6480f35c0837493
3
- size 13898
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:faa87e7f6fe17256601a99f3b7c40ad18dc06c8e9eb366a97c1c8080b1e1a1ef
3
+ size 166113