Spaces:
Sleeping
Sleeping
File size: 370 Bytes
0a2ff60 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
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()
|