FlareAI / app.py
HaveAI's picture
Update app.py
359afbc verified
raw
history blame
420 Bytes
# app.py
import gradio as gr
def echo(message, history):
history = history or []
reply = f"Ты написал: {message}"
history.append((message, reply))
return history, history
demo = gr.ChatInterface(
fn=echo,
type="messages",
examples=["Привет", "Как дела?", "Расскажи шутку"],
title="Echo Bot на Gradio"
)
if __name__ == "__main__":
demo.launch()