Update app.py
Browse files
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]
|
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
|