Text Generation
Transformers
Safetensors
step3p5
conversational
custom_code
Eval Results
Step-3.5-Flash / app.py
kcrmail's picture
Rename .done to app.py
449c85d verified
Raw
History Blame Contribute Delete
413 Bytes
import gradio as gr
def chat_response(message, history):
history.append((message, f"Bot says: {message}"))
return "", history
with gr.Blocks() as demo:
gr.Markdown("# Chat Demo")
chatbot = gr.Chatbot()
msg = gr.Textbox(label="Message")
clear = gr.Button("Clear")
msg.submit(chat_response, [msg, chatbot], [msg, chatbot])
clear.click(lambda: [], None, chatbot)
demo.launch()