File size: 393 Bytes
0fc6538
2b2bc5a
 
 
0fc6538
2b2bc5a
 
 
 
 
 
 
 
f0608fd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from transformers import pipeline
import gradio as gr

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="POWO Chatbot", description="Entre un texte pour commencer le chatting.")

demo_chatbot.launch()