Update app.py
Browse files
app.py
CHANGED
|
@@ -42,7 +42,7 @@ with gr.Blocks() as demo:
|
|
| 42 |
top_p = gr.Slider(0.1, 1.0, value=0.9, step=0.05, label="Top-P (nucleus) sampling")
|
| 43 |
rep_pty = gr.Slider(label="Repetition Penalty",info="Token repetition penalty. 1.0 means no penalty.",minimum=1.0, maximum=2.0, step=0.01, value=1.2)
|
| 44 |
|
| 45 |
-
generate_btn.click(generate_response, [instruction, max_new_tokens, temperature, top_k, top_p], output_box)
|
| 46 |
|
| 47 |
# ---- Launch ----
|
| 48 |
if __name__ == "__main__":
|
|
|
|
| 42 |
top_p = gr.Slider(0.1, 1.0, value=0.9, step=0.05, label="Top-P (nucleus) sampling")
|
| 43 |
rep_pty = gr.Slider(label="Repetition Penalty",info="Token repetition penalty. 1.0 means no penalty.",minimum=1.0, maximum=2.0, step=0.01, value=1.2)
|
| 44 |
|
| 45 |
+
generate_btn.click(generate_response, [instruction, max_new_tokens, temperature, top_k, top_p, rep_pty], output_box)
|
| 46 |
|
| 47 |
# ---- Launch ----
|
| 48 |
if __name__ == "__main__":
|