Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,7 +42,7 @@ from transformers import (
|
|
| 42 |
)
|
| 43 |
|
| 44 |
from graph_tool import generate_plot
|
| 45 |
-
from loading_animations import create_thinking_indicator
|
| 46 |
|
| 47 |
|
| 48 |
# Updated environment variables
|
|
@@ -1073,11 +1073,8 @@ def add_thinking_indicator(chat_history, conversation_state):
|
|
| 1073 |
if not conversation_state:
|
| 1074 |
return chat_history, conversation_state
|
| 1075 |
|
| 1076 |
-
#
|
| 1077 |
-
|
| 1078 |
-
thinking_html = get_thinking_indicator_by_query(last_message)
|
| 1079 |
-
|
| 1080 |
-
# Add thinking indicator to chat display (not permanent state)
|
| 1081 |
chat_history.append({"role": "assistant", "content": thinking_html})
|
| 1082 |
|
| 1083 |
return chat_history, conversation_state
|
|
|
|
| 42 |
)
|
| 43 |
|
| 44 |
from graph_tool import generate_plot
|
| 45 |
+
from loading_animations import create_thinking_indicator
|
| 46 |
|
| 47 |
|
| 48 |
# Updated environment variables
|
|
|
|
| 1073 |
if not conversation_state:
|
| 1074 |
return chat_history, conversation_state
|
| 1075 |
|
| 1076 |
+
# Add simple animated dots to chat display (not permanent state)
|
| 1077 |
+
thinking_html = get_thinking_dots()
|
|
|
|
|
|
|
|
|
|
| 1078 |
chat_history.append({"role": "assistant", "content": thinking_html})
|
| 1079 |
|
| 1080 |
return chat_history, conversation_state
|