NCTCMumbai commited on
Commit
7040789
·
verified ·
1 Parent(s): 623a426

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -109,7 +109,7 @@ def bot(history, api_kind):
109
  print(prompt_html,'token count is',count_tokens(prompt_html))
110
  history[-1][1] = ""
111
  for character in generate_fn(prompt, history[:-1]):
112
- history[-1][1] += character
113
  #yield history, prompt_html
114
  print('final history is ',history)
115
  return history, prompt_html
 
109
  print(prompt_html,'token count is',count_tokens(prompt_html))
110
  history[-1][1] = ""
111
  for character in generate_fn(prompt, history[:-1]):
112
+ history[-1][1] = character
113
  #yield history, prompt_html
114
  print('final history is ',history)
115
  return history, prompt_html