ganeshkamath89
commited on
Correcting the API call in return statement
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ chatbot = pipeline("conversational", model = "facebook/blenderbot-400M-distill")
|
|
10 |
def vanilla_chatbot(message, history):
|
11 |
conversation = Conversation(text = message, past_user_inputs = message_list, generated_responses = response_list)
|
12 |
conversation = chatbot(conversation)
|
13 |
-
return conversation.
|
14 |
|
15 |
demo_chatbot = gr.ChatInterface(vanilla_chatbot, title = "Vanilla Chatbot", description = "Enter text to start chatting.")
|
16 |
demo_chatbot.launch()
|
|
|
10 |
def vanilla_chatbot(message, history):
|
11 |
conversation = Conversation(text = message, past_user_inputs = message_list, generated_responses = response_list)
|
12 |
conversation = chatbot(conversation)
|
13 |
+
return conversation.generated_responses[-1]
|
14 |
|
15 |
demo_chatbot = gr.ChatInterface(vanilla_chatbot, title = "Vanilla Chatbot", description = "Enter text to start chatting.")
|
16 |
demo_chatbot.launch()
|