vpcom commited on
Commit
42db176
·
1 Parent(s): 9780219

fix: convert the generator to a string

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -140,7 +140,7 @@ chat_interface = gr.ChatInterface(
140
  )
141
 
142
  def evolve_text(x):
143
- return next(generate(
144
  x, "", "<|endoftext|>",
145
  temperature=0.9, max_new_tokens=10,
146
  top_p=0.95, repetition_penalty=1.2,
 
140
  )
141
 
142
  def evolve_text(x):
143
+ return "".join(x for x in generate(
144
  x, "", "<|endoftext|>",
145
  temperature=0.9, max_new_tokens=10,
146
  top_p=0.95, repetition_penalty=1.2,