BlinkDL commited on
Commit
c53a617
1 Parent(s): b761794

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -392,7 +392,7 @@ with gr.Blocks(title=title) as demo:
392
  submit = gr.Button("Submit", variant="primary")
393
  clear = gr.Button("Clear", variant="secondary")
394
  output = gr.Textbox(label="Output", lines=30)
395
- data = gr.Dataset(components=[prompt, token_count, temperature, top_p, presence_penalty, count_penalty], samples=examples_chn, samples_per_page=50, label="Examples", headers=["Prompt", "Max Tokens", "Temperature", "Top P", "Presence Penalty", "Count Penalty"])
396
  submit.click(evaluate_wyw, [prompt, token_count, temperature, top_p, presence_penalty, count_penalty], [output])
397
  clear.click(lambda: None, [], [output])
398
  data.click(lambda x: x, [data], [prompt, token_count, temperature, top_p, presence_penalty, count_penalty])
 
392
  submit = gr.Button("Submit", variant="primary")
393
  clear = gr.Button("Clear", variant="secondary")
394
  output = gr.Textbox(label="Output", lines=30)
395
+ data = gr.Dataset(components=[prompt, token_count, temperature, top_p, presence_penalty, count_penalty], samples=examples_wyw, samples_per_page=50, label="Examples", headers=["Prompt", "Max Tokens", "Temperature", "Top P", "Presence Penalty", "Count Penalty"])
396
  submit.click(evaluate_wyw, [prompt, token_count, temperature, top_p, presence_penalty, count_penalty], [output])
397
  clear.click(lambda: None, [], [output])
398
  data.click(lambda x: x, [data], [prompt, token_count, temperature, top_p, presence_penalty, count_penalty])