Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
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=
|
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])
|