Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,10 +7,9 @@ message_list = []
|
|
7 |
response_list = []
|
8 |
|
9 |
def vanilla_chatbot(message, history):
|
10 |
-
conversation =
|
11 |
-
|
12 |
-
|
13 |
-
return conversation.generated_responses[-1]
|
14 |
|
15 |
demo_chatbot = gr.ChatInterface(vanilla_chatbot, title="Vanilla Chatbot", description="Enter text to start chatting.")
|
16 |
|
|
|
7 |
response_list = []
|
8 |
|
9 |
def vanilla_chatbot(message, history):
|
10 |
+
conversation = chatbot(message)
|
11 |
+
|
12 |
+
return conversation[0]['generated_text']
|
|
|
13 |
|
14 |
demo_chatbot = gr.ChatInterface(vanilla_chatbot, title="Vanilla Chatbot", description="Enter text to start chatting.")
|
15 |
|