File size: 383 Bytes
b161df6
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
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()