TekamBrice's picture
Create app.py
7228328 verified
raw
history blame contribute delete
380 Bytes
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()