Spaces:
Build error
Build error
ss
Browse files
app.py
CHANGED
|
@@ -47,6 +47,8 @@ def predict(inputs, chatbot):
|
|
| 47 |
|
| 48 |
print(f'inputs is - {inputs}')
|
| 49 |
print(f'chatbot is - {chatbot}')
|
|
|
|
|
|
|
| 50 |
messages = []
|
| 51 |
for conv in chatbot:
|
| 52 |
user = conv[0]
|
|
|
|
| 47 |
|
| 48 |
print(f'inputs is - {inputs}')
|
| 49 |
print(f'chatbot is - {chatbot}')
|
| 50 |
+
if chatbot[0][-1] is None: #[["hi there'", None]]
|
| 51 |
+
chatbot=[]
|
| 52 |
messages = []
|
| 53 |
for conv in chatbot:
|
| 54 |
user = conv[0]
|