File size: 337 Bytes
ff74699
1534ee5
4ebcf5f
 
bf265cb
 
 
e81b638
bf265cb
 
3c8e944
e81b638
1
2
3
4
5
6
7
8
9
10
11
12
import gradio as gr

def echo(message, history, new_param):
    # Use the new_param in your function logic
    history.append(new_param)
    history.append(message)
    return history

new_param_input = gr.Textbox(label="New Parameter")

demo = gr.ChatInterface(fn=echo, title="Echo Bot", additional_inputs=new_param_input)
demo.launch()