Spaces:
Runtime error
Runtime error
from transformers import pipeline | |
chatbot_intelligent= pipeline(model="facebook/blenderbot-400M-distill") | |
import gradio as gr | |
def MyChatbot(message,history): | |
conversation=chatbot_intelligent(message) | |
return conversation[0]['generated_text'] | |
demo_chatbot = gr.ChatInterface(MyChatbot, title="MyChatbot", description="Welcome! Enter text to start chatting.") | |
demo_chatbot.launch() |