AudreyMireille commited on
Commit
b161df6
1 Parent(s): 7870301

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ from transformers import pipeline
2
+ chatbot_intelligent= pipeline(model="facebook/blenderbot-400M-distill")
3
+ import gradio as gr
4
+ def MyChatbot(message,history):
5
+ conversation=chatbot_intelligent(message)
6
+ return conversation[0]['generated_text']
7
+
8
+ demo_chatbot = gr.ChatInterface(MyChatbot, title="MyChatbot", description="Welcome! Enter text to start chatting.")
9
+ demo_chatbot.launch()