Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -367,6 +367,6 @@ with gr.Blocks() as demo:
|
|
367 |
max_tokens = gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens")
|
368 |
temperature = gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature")
|
369 |
top_p = gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p (nucleus sampling)")
|
370 |
-
chat_box.submit(respond, inputs=[chat_box, system_message, max_tokens, temperature, top_p
|
371 |
|
372 |
demo.launch()
|
|
|
367 |
max_tokens = gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens")
|
368 |
temperature = gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature")
|
369 |
top_p = gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p (nucleus sampling)")
|
370 |
+
chat_box.submit(respond, inputs=[chat_box, system_message, max_tokens, temperature, top_p])#, outputs=[chat_display, chat_box])
|
371 |
|
372 |
demo.launch()
|