Jeremy Live commited on
Commit
bc753a4
·
1 Parent(s): 55ff70d
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -795,7 +795,7 @@ def create_application():
795
  # Create the UI components
796
  demo, chatbot, question_input, submit_button, streaming_output_display = create_ui()
797
 
798
- def user_message(user_input: str, chat_history: List[Tuple[str, str]]) -> Tuple[str, List[Tuple[str, str]]]:
799
  """Add user message to chat history and clear input."""
800
  if not user_input.strip():
801
  return "", chat_history
@@ -807,7 +807,7 @@ def create_application():
807
  chat_history = []
808
 
809
  # Add user message and empty assistant response
810
- chat_history.append((user_input, None))
811
 
812
  # Clear the input
813
  return "", chat_history
 
795
  # Create the UI components
796
  demo, chatbot, question_input, submit_button, streaming_output_display = create_ui()
797
 
798
+ def user_message(user_input: str, chat_history: List[List[str]]) -> Tuple[str, List[List[str]]]:
799
  """Add user message to chat history and clear input."""
800
  if not user_input.strip():
801
  return "", chat_history
 
807
  chat_history = []
808
 
809
  # Add user message and empty assistant response
810
+ chat_history.append([user_input, None])
811
 
812
  # Clear the input
813
  return "", chat_history