AudreyMireille's picture
Create app.py
b161df6 verified
raw
history blame contribute delete
No virus
383 Bytes
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()