Spaces:
Runtime error
Runtime error
Download app.py from LEWOPO/Chatbot_interactif: direct link, hf CLI and curl.
- Browser
- Download file 393 Bytes
-
https://huggingface.co/spaces/LEWOPO/Chatbot_interactif/resolve/main/app.py
- Command line
-
hf download hf://spaces/LEWOPO/Chatbot_interactif/app.py
-
curl -L -o app.py https://huggingface.co/spaces/LEWOPO/Chatbot_interactif/resolve/main/app.py
393 Bytes
| 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() |