Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -274,9 +274,12 @@ def count_conversation_turns(history):
|
|
274 |
|
275 |
# Chatbot logic
|
276 |
def sysml_chatbot(message, history):
|
277 |
-
|
278 |
-
|
279 |
-
|
|
|
|
|
|
|
280 |
chat_messages = convert_history_to_messages(history)
|
281 |
|
282 |
# Count current conversation turns for smart question timing
|
|
|
274 |
|
275 |
# Chatbot logic
|
276 |
def sysml_chatbot(message, history):
|
277 |
+
|
278 |
+
if not message.strip():
|
279 |
+
answer = "Can I help you with anything else?"
|
280 |
+
history.append(("", answer))
|
281 |
+
return "", history
|
282 |
+
|
283 |
chat_messages = convert_history_to_messages(history)
|
284 |
|
285 |
# Count current conversation turns for smart question timing
|