binary-husky commited on
Commit
8f60e96
2 Parent(s): b100680 5d22785

Merge pull request #96 from eltociear/patch-1

Browse files
Files changed (1) hide show
  1. predict.py +1 -1
predict.py CHANGED
@@ -176,7 +176,7 @@ def predict(inputs, top_p, temperature, chatbot=[], history=[], system_prompt=''
176
  chunk = get_full_error(chunk, stream_response)
177
  error_msg = chunk.decode()
178
  if "reduce the length" in error_msg:
179
- chatbot[-1] = (chatbot[-1][0], "[Local Message] Input (or history) is too long, please reduce input or clear history by refleshing this page.")
180
  history = []
181
  elif "Incorrect API key" in error_msg:
182
  chatbot[-1] = (chatbot[-1][0], "[Local Message] Incorrect API key provided.")
 
176
  chunk = get_full_error(chunk, stream_response)
177
  error_msg = chunk.decode()
178
  if "reduce the length" in error_msg:
179
+ chatbot[-1] = (chatbot[-1][0], "[Local Message] Input (or history) is too long, please reduce input or clear history by refreshing this page.")
180
  history = []
181
  elif "Incorrect API key" in error_msg:
182
  chatbot[-1] = (chatbot[-1][0], "[Local Message] Incorrect API key provided.")