z1alilou commited on
Commit
d7d9df2
·
verified ·
1 Parent(s): c111ec1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -9,10 +9,11 @@ message_list = []
9
  response_list = []
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)
14
-
15
- return conversation.generated_responses[-1]
16
 
17
  demo_chatbot = gr.ChatInterface(vanilla_chatbot, title="Vanilla Chatbot", description="Enter text to start chatting.")
18
 
 
9
  response_list = []
10
 
11
  def vanilla_chatbot(message, history):
12
+ conversation = chatbot(message)
13
+ #conversation = Conversation(text=message, past_user_inputs=message_list, generated_responses=response_list)
14
  conversation = chatbot(conversation)
15
+ return conversation[0]['generated_text']
16
+ #return conversation.generated_responses[-1]
17
 
18
  demo_chatbot = gr.ChatInterface(vanilla_chatbot, title="Vanilla Chatbot", description="Enter text to start chatting.")
19