lvwerra HF staff commited on
Commit
040a3f3
1 Parent(s): de17bac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ def generate(prompt, temperature=0.9, max_new_tokens=256, top_p=0.95, repetition
49
  **generate_kwargs,
50
  )
51
 
52
- output = ""
53
  for response in stream:
54
  output += response.token.text
55
  yield output
 
49
  **generate_kwargs,
50
  )
51
 
52
+ output = prompt
53
  for response in stream:
54
  output += response.token.text
55
  yield output