broadfield commited on
Commit
d1bea15
·
verified ·
1 Parent(s): fcb3120

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -40,7 +40,7 @@ def generate(prompt,history):
40
  buf = ""
41
  for response in stream:
42
  output += response.token.text
43
- yield [(prompt,output)]
44
 
45
  def load_mod(model):
46
  yield f"Loading: {model}"
 
40
  buf = ""
41
  for response in stream:
42
  output += response.token.text
43
+ yield history.append((prompt,output))
44
 
45
  def load_mod(model):
46
  yield f"Loading: {model}"