eogreen commited on
Commit
2d05f8f
1 Parent(s): e18c393

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -116,13 +116,10 @@ def llm_query(user_input,company):
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
125
- response = llm([prompt])
126
 
127
  # response = llm_client.chat.completions.create(
128
  # model=model_name,
 
116
  )
117
  ]
118
 
 
 
 
119
  # Get response from the LLM
120
  try:
121
  # Call the chat model with the message
122
+ response = llm(prompt)
123
 
124
  # response = llm_client.chat.completions.create(
125
  # model=model_name,