Upload app.py
Browse files
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(
|
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,
|