Spaces:
Sleeping
Sleeping
import gradio as gr | |
with gr.Blocks() as demo: | |
chat = gr.ChatInterface( | |
lambda x,y,a,b,c: x, | |
type="messages", | |
additional_inputs=[ | |
gr.Slider(1, 2048, value=512, step=1, label="Max tokens",render=False), | |
gr.Slider(0.1, 4.0, value=0.9, step=0.1, label="Temperature",render=False), | |
gr.Slider(0.1, 1.0, value=0.95, step=0.05, label="Top p ",render=False) | |
], | |
editable=True, | |
save_history=True | |
) | |
demo.launch() |