Tile commited on
Commit
bb549fc
1 Parent(s): 6b87984

first commit

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -250,8 +250,8 @@ def http_bot(
250
  try:
251
  # Stream output
252
  response = requests.post(url, headers=headers, json=pload, timeout=100, stream=True)
253
- print("response")
254
- logger.info(reponse)
255
  for chunk in response.iter_lines(decode_unicode=False, delimiter=b"\0"):
256
  if chunk:
257
  res = json.loads(chunk.decode())
@@ -283,7 +283,7 @@ def http_bot(
283
  # else:
284
  # raise requests.exceptions.RequestException()
285
  except requests.exceptions.RequestException as e:
286
- print(e)
287
  state.messages[-1][-1] = server_error_msg
288
  yield (state, state.to_gradio_chatbot(), None) + (
289
  enable_btn,
 
250
  try:
251
  # Stream output
252
  response = requests.post(url, headers=headers, json=pload, timeout=100, stream=True)
253
+ # print("response")
254
+ # logger.info(response)
255
  for chunk in response.iter_lines(decode_unicode=False, delimiter=b"\0"):
256
  if chunk:
257
  res = json.loads(chunk.decode())
 
283
  # else:
284
  # raise requests.exceptions.RequestException()
285
  except requests.exceptions.RequestException as e:
286
+ # print(e)
287
  state.messages[-1][-1] = server_error_msg
288
  yield (state, state.to_gradio_chatbot(), None) + (
289
  enable_btn,