From 0382ae2c72c2714830b8632916226cf569d0a2bd Mon Sep 17 00:00:00 2001 From: binary-husky <96192199+binary-husky@users.noreply.github.com> Date: Tue, 21 Mar 2023 21:24:38 +0800 Subject: [PATCH] Update predict.py --- predict.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/predict.py b/predict.py index 9a6fffb..5206530 100644 --- a/predict.py +++ b/predict.py @@ -89,7 +89,7 @@ def predict(inputs, top_p, temperature, chatbot=[], history=[], system_prompt='' response = requests.post(API_URL, headers=headers, proxies=proxies, json=payload, stream=True, timeout=15) except: - chatbot[-1] = ((chatbot[-1][0], 'Requests Timeout, Network Error.')) + chatbot[-1] = ((chatbot[-1][0], 'Request timeout, network error. please check proxy settings in config.py.')) yield chatbot, history, "Requests Timeout" raise TimeoutError