Update app.py
Browse files
app.py
CHANGED
@@ -9,10 +9,11 @@ message_list = []
|
|
9 |
response_list = []
|
10 |
|
11 |
def vanilla_chatbot(message, history):
|
12 |
-
conversation =
|
|
|
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 |
|