Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,9 @@ def _parse_text(text):
|
|
44 |
text = "".join(lines)
|
45 |
return text
|
46 |
|
47 |
-
def predict(_chatbot, task_history):
|
|
|
|
|
48 |
if not task_history:
|
49 |
return _chatbot
|
50 |
|
|
|
44 |
text = "".join(lines)
|
45 |
return text
|
46 |
|
47 |
+
def predict(_chatbot, task_history, user_input):
|
48 |
+
query = user_input if user_input else task_history[-1][0]
|
49 |
+
print("User: " + _parse_text(query))
|
50 |
if not task_history:
|
51 |
return _chatbot
|
52 |
|