sanchitv7 commited on
Commit
0bb902d
·
1 Parent(s): 1f597c7

Fix formatting in handle_message docstring for consistency

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -7,16 +7,17 @@ from utils import generate_response
7
 
8
  def handle_message(persona, user_input, history):
9
  """Process a chat message and return updated history.
10
-
11
  Args:
12
  persona: Selected chat persona
13
  user_input: User's message
14
  history: Previous chat messages
15
-
16
  Returns:
17
  Updated chat history with new messages
18
  """
19
  # Validate inputs
 
20
  if not persona or persona not in PERSONAS:
21
  return history + [
22
  {"role": "assistant", "content": "Please select a valid persona"}
 
7
 
8
  def handle_message(persona, user_input, history):
9
  """Process a chat message and return updated history.
10
+
11
  Args:
12
  persona: Selected chat persona
13
  user_input: User's message
14
  history: Previous chat messages
15
+
16
  Returns:
17
  Updated chat history with new messages
18
  """
19
  # Validate inputs
20
+
21
  if not persona or persona not in PERSONAS:
22
  return history + [
23
  {"role": "assistant", "content": "Please select a valid persona"}