test / app.py
Camille BONAMY
🧪 test with history, examples and no gr.blocks
a1caeb6
Raw History Blame Contribute Delete
333 Bytes
import gradio as gr
import spaces
@spaces.GPU
def respond(message, history):
return "Toujours le même refrain"
chatbot = gr.ChatInterface(
fn=respond,
save_history=True,
examples=["What can u do for me ?", "Who is the prettiest ?"],
title="My awesome app",
)
if __name__ == "__main__":
chatbot.launch()