jdesiree commited on
Commit
6b84420
·
verified ·
1 Parent(s): 7c57c75

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
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, get_thinking_indicator_by_query
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
- # Get the last user message for context-aware thinking indicator
1077
- last_message = conversation_state[-1]["content"] if conversation_state else ""
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