这个提交包含在:
Your Name
2023-03-20 18:05:43 +08:00
父节点 616c877dbf
当前提交 91b0718fc5

查看文件

@@ -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.append(('', 'Requests Timeout, Network Error.'))
chatbot[-1] = ((chatbot[-1][0], 'Requests Timeout, Network Error.'))
yield chatbot, history, "Requests Timeout"
raise TimeoutError