BlinkDL commited on
Commit
f2b582c
·
verified ·
1 Parent(s): 6726720

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -140,7 +140,7 @@ with gr.Blocks(title=title_v6) as demo:
140
  with gr.Row():
141
  submit = gr.Button("Submit", variant="primary")
142
  clear = gr.Button("Clear", variant="secondary")
143
- output = gr.Textbox(label="Output", lines=30)
144
  data = gr.Dataset(components=[prompt, token_count, temperature, top_p, presence_penalty, count_penalty], samples=examples, samples_per_page=50, label="Example Instructions", headers=["Prompt", "Max Tokens", "Temperature", "Top P", "Presence Penalty", "Count Penalty"])
145
  submit.click(evaluate, [prompt, token_count, temperature, top_p, presence_penalty, count_penalty], [output])
146
  clear.click(lambda: None, [], [output])
 
140
  with gr.Row():
141
  submit = gr.Button("Submit", variant="primary")
142
  clear = gr.Button("Clear", variant="secondary")
143
+ output = gr.Textbox(label="Output", lines=20, max_lines=100)
144
  data = gr.Dataset(components=[prompt, token_count, temperature, top_p, presence_penalty, count_penalty], samples=examples, samples_per_page=50, label="Example Instructions", headers=["Prompt", "Max Tokens", "Temperature", "Top P", "Presence Penalty", "Count Penalty"])
145
  submit.click(evaluate, [prompt, token_count, temperature, top_p, presence_penalty, count_penalty], [output])
146
  clear.click(lambda: None, [], [output])