Spaces:
Runtime error
Runtime error
fix typo in predict.py
Browse filesrefleshing -> refreshing
- 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
|
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.")
|