Spaces:
Running
on
Zero
Running
on
Zero
0.30 change select
Browse files
app.py
CHANGED
@@ -212,7 +212,7 @@ with gr.Blocks() as demo:
|
|
212 |
top_p = gr.Slider(minimum=0.0, maximum=1.0, value=1.0, label="Top-p", step=0.01)
|
213 |
repetition_penalty = gr.Slider(minimum=0.1, maximum=2.0, value=1.1, label="Repetition Penalty", step=0.1)
|
214 |
|
215 |
-
better_bot.select(show_bot, better_bot, outputs=[chatbot_a, chatbot_b]) #fckp
|
216 |
input_text.submit(generate_both, inputs=[system_prompt, input_text, chatbot_a, chatbot_b, max_new_tokens, temperature, top_p, repetition_penalty], outputs=[chatbot_a, chatbot_b])
|
217 |
submit_btn.click(generate_both, inputs=[system_prompt, input_text, chatbot_a, chatbot_b, max_new_tokens, temperature, top_p, repetition_penalty], outputs=[chatbot_a, chatbot_b])
|
218 |
clear_btn.click(clear, outputs=[chatbot_a, chatbot_b])
|
|
|
212 |
top_p = gr.Slider(minimum=0.0, maximum=1.0, value=1.0, label="Top-p", step=0.01)
|
213 |
repetition_penalty = gr.Slider(minimum=0.1, maximum=2.0, value=1.1, label="Repetition Penalty", step=0.1)
|
214 |
|
215 |
+
#better_bot.select(show_bot, better_bot, outputs=[chatbot_a, chatbot_b]) #fckp
|
216 |
input_text.submit(generate_both, inputs=[system_prompt, input_text, chatbot_a, chatbot_b, max_new_tokens, temperature, top_p, repetition_penalty], outputs=[chatbot_a, chatbot_b])
|
217 |
submit_btn.click(generate_both, inputs=[system_prompt, input_text, chatbot_a, chatbot_b, max_new_tokens, temperature, top_p, repetition_penalty], outputs=[chatbot_a, chatbot_b])
|
218 |
clear_btn.click(clear, outputs=[chatbot_a, chatbot_b])
|