import gradio as gr from transformers import pipeline chatbot=pipeline(model="facebook/blenderbot-400M-distill") def vanilla_chatbot(message, history): conversation = chatbot(message) return conversation[0]['generated_text'] demo_chatbot = gr.ChatInterface(vanilla_chatbot, title="Chatbot", description="Enter text to start chatting.") demo_chatbot.launch()