yuntian-deng commited on
Commit
f0d3d62
1 Parent(s): bca8716

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -64,6 +64,7 @@ def predict(inputs, top_p, temperature, chat_counter, chatbot=[], history=[]):
64
  response_code = f"{response}"
65
  if response_code.strip() != "<Response [200]>":
66
  print(f"response code - {response}")
 
67
  token_counter = 0
68
  partial_words = ""
69
  counter=0
 
64
  response_code = f"{response}"
65
  if response_code.strip() != "<Response [200]>":
66
  print(f"response code - {response}")
67
+ return
68
  token_counter = 0
69
  partial_words = ""
70
  counter=0