load-test-ci / app.py
abidlabs's picture
abidlabs HF staff
Update app.py
b2e94c9 verified
raw
history blame contribute delete
490 Bytes
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()