Gradio-API-Test / app.py
KiraPGR's picture
Update app.py
3c8e944 verified
raw
history blame contribute delete
337 Bytes
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()