Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ if user_input:
|
|
47 |
formatted_prompt = final_prompt.format_messages(dialogue=user_input)
|
48 |
|
49 |
# Convert the list of messages into a single string
|
50 |
-
prompt_string = "\n".join([msg
|
51 |
|
52 |
# Get response from model with correct explicit parameters
|
53 |
llm = HuggingFaceEndpoint(
|
|
|
47 |
formatted_prompt = final_prompt.format_messages(dialogue=user_input)
|
48 |
|
49 |
# Convert the list of messages into a single string
|
50 |
+
prompt_string = "\n".join([msg.content for msg in formatted_prompt]) # Access content with .content
|
51 |
|
52 |
# Get response from model with correct explicit parameters
|
53 |
llm = HuggingFaceEndpoint(
|