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