yuntian-deng commited on
Commit
a57becc
1 Parent(s): b59874b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -67,7 +67,6 @@ def predict(inputs, top_p, temperature, chat_counter, chatbot=[], history=[]):
67
 
68
  counter=0
69
  for chunk in response.iter_lines():
70
- print(f"chunk - {chunk}")
71
  #Skipping first chunk
72
  if counter == 0:
73
  counter+=1
@@ -88,6 +87,7 @@ def predict(inputs, top_p, temperature, chat_counter, chatbot=[], history=[]):
88
  chat = [(history[i], history[i + 1]) for i in range(0, len(history) - 1, 2) ] # convert to tuples of list
89
  token_counter+=1
90
  yield chat, history, chat_counter, response # resembles {chatbot: chat, state: history}
 
91
 
92
 
93
  def reset_textbox():
 
67
 
68
  counter=0
69
  for chunk in response.iter_lines():
 
70
  #Skipping first chunk
71
  if counter == 0:
72
  counter+=1
 
87
  chat = [(history[i], history[i + 1]) for i in range(0, len(history) - 1, 2) ] # convert to tuples of list
88
  token_counter+=1
89
  yield chat, history, chat_counter, response # resembles {chatbot: chat, state: history}
90
+ print(partial_words)
91
 
92
 
93
  def reset_textbox():