vpcom commited on
Commit
9780219
·
1 Parent(s): 53ad3b6

fix: not anymore a generator

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -127,7 +127,7 @@ chatbot = gr.Chatbot(bubble_full_width = False)
127
  textbox = gr.Textbox(
128
  label="textbox",
129
  lines=3,
130
- min_width=230,
131
  placeholder="...Type something here",
132
  rtl=True,
133
  )
@@ -140,12 +140,12 @@ chat_interface = gr.ChatInterface(
140
  )
141
 
142
  def evolve_text(x):
143
- return generate(
144
  x, "", "<|endoftext|>",
145
  temperature=0.9, max_new_tokens=10,
146
  top_p=0.95, repetition_penalty=1.2,
147
  seed=42,
148
- )
149
 
150
  with gr.Blocks(css=CSS) as demo:
151
  with gr.Row():
 
127
  textbox = gr.Textbox(
128
  label="textbox",
129
  lines=3,
130
+ min_width=450,
131
  placeholder="...Type something here",
132
  rtl=True,
133
  )
 
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,
147
  seed=42,
148
+ ))
149
 
150
  with gr.Blocks(css=CSS) as demo:
151
  with gr.Row():