Spaces:
Runtime error
Runtime error
Create app.py
Browse files123456789101112131415from transformers import pipeline ,Conversationimport gradio as gr
chatbot=pipeline(model="facebook/blenderbot-400M-distill")message_list = []response_list = []
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()app.pyAdded+15