Thiloid commited on
Commit
10e2165
·
verified ·
1 Parent(s): 3b8d6ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -59,8 +59,7 @@ def response(prompt, history, selected_option, temperature=0.9, max_new_tokens=5
59
  output = ""
60
  for response in stream:
61
  output += response.token.text
62
- yield output
63
- yield output
64
 
65
 
66
  def update_prompt(selected_option, history):
 
59
  output = ""
60
  for response in stream:
61
  output += response.token.text
62
+ yield history + [[prompt, output]]
 
63
 
64
 
65
  def update_prompt(selected_option, history):