decula commited on
Commit ·
da36c8a
1
Parent(s): cbde1db
modify dual.py remove examples
Browse files- 7b_dual.py +1 -1
7b_dual.py
CHANGED
|
@@ -177,7 +177,7 @@ with gr.Blocks(title=title) as demo:
|
|
| 177 |
submit = gr.Button("Submit", variant="primary")
|
| 178 |
clear = gr.Button("Clear", variant="secondary")
|
| 179 |
output = gr.Textbox(label="Output", lines=5)
|
| 180 |
-
data = gr.Dataset(components=[prompt, token_count, temperature, top_p, presence_penalty, count_penalty], label="Example Instructions", headers=["Prompt", "Max Tokens", "Temperature", "Top P", "Presence Penalty", "Count Penalty"]
|
| 181 |
submit.click(evaluate, [prompt, token_count, temperature, top_p, presence_penalty, count_penalty], [output])
|
| 182 |
clear.click(lambda: None, [], [output])
|
| 183 |
data.click(lambda *x: x, [data], [prompt, token_count, temperature, top_p, presence_penalty, count_penalty])
|
|
|
|
| 177 |
submit = gr.Button("Submit", variant="primary")
|
| 178 |
clear = gr.Button("Clear", variant="secondary")
|
| 179 |
output = gr.Textbox(label="Output", lines=5)
|
| 180 |
+
data = gr.Dataset(components=[prompt, token_count, temperature, top_p, presence_penalty, count_penalty], label="Example Instructions", headers=["Prompt", "Max Tokens", "Temperature", "Top P", "Presence Penalty", "Count Penalty"])
|
| 181 |
submit.click(evaluate, [prompt, token_count, temperature, top_p, presence_penalty, count_penalty], [output])
|
| 182 |
clear.click(lambda: None, [], [output])
|
| 183 |
data.click(lambda *x: x, [data], [prompt, token_count, temperature, top_p, presence_penalty, count_penalty])
|