eltociear commited on
Commit
5d22785
1 Parent(s): 17abd29

fix typo in predict.py

Browse files

refleshing -> refreshing

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.")