mafoaurelie's picture
Create app.py
0a2ff60 verified
raw
history blame contribute delete
370 Bytes
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()