Gradio-API-Test / app.py
KiraPGR's picture
Update app.py
bf265cb verified
raw
history blame
376 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, examples=["hello", "hola", "merhaba"], title="Echo Bot", additional_inputs=new_param_input)
demo.launch()