binary-husky commited on
Commit
0382ae2
1 Parent(s): 8ce9266

Update predict.py

Browse files
Files changed (1) hide show
  1. predict.py +1 -1
predict.py CHANGED
@@ -89,7 +89,7 @@ def predict(inputs, top_p, temperature, chatbot=[], history=[], system_prompt=''
89
  response = requests.post(API_URL, headers=headers, proxies=proxies,
90
  json=payload, stream=True, timeout=15)
91
  except:
92
- chatbot[-1] = ((chatbot[-1][0], 'Requests Timeout, Network Error.'))
93
  yield chatbot, history, "Requests Timeout"
94
  raise TimeoutError
95
 
 
89
  response = requests.post(API_URL, headers=headers, proxies=proxies,
90
  json=payload, stream=True, timeout=15)
91
  except:
92
+ chatbot[-1] = ((chatbot[-1][0], 'Request timeout, network error. please check proxy settings in config.py.'))
93
  yield chatbot, history, "Requests Timeout"
94
  raise TimeoutError
95