eogreen commited on
Commit
e18c393
1 Parent(s): 91fe347

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -116,6 +116,9 @@ def llm_query(user_input,company):
116
  )
117
  ]
118
 
 
 
 
119
  # Get response from the LLM
120
  try:
121
  # Call the chat model with the message
 
116
  )
117
  ]
118
 
119
+ # Flatten the list of messages
120
+ prompt = [message for sublist in prompt for message in (sublist if isinstance(sublist, list) else [sublist])]
121
+
122
  # Get response from the LLM
123
  try:
124
  # Call the chat model with the message