yongqianghf commited on
Commit
2ea2bc5
·
1 Parent(s): df40d5c

Update space

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  from transformers import pipeline, Conversation
2
  import gradio as gr
3
 
@@ -6,6 +7,7 @@ chatbot = pipeline(model="facebook/blenderbot-400M-distill")
6
  message_list = []
7
  response_list = []
8
 
 
9
  def vanilla_chatbot(message, history):
10
  conversation = Conversation(text=message, past_user_inputs=message_list, generated_responses=response_list)
11
  conversation = chatbot(conversation)
 
1
+ # This is my first chatbot example
2
  from transformers import pipeline, Conversation
3
  import gradio as gr
4
 
 
7
  message_list = []
8
  response_list = []
9
 
10
+
11
  def vanilla_chatbot(message, history):
12
  conversation = Conversation(text=message, past_user_inputs=message_list, generated_responses=response_list)
13
  conversation = chatbot(conversation)