zoya23 commited on
Commit
26f806b
·
verified ·
1 Parent(s): c4bfef8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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["content"] for msg in formatted_prompt])
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(