agentharbor commited on
Commit
d333160
1 Parent(s): 2b32db4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -446,7 +446,15 @@ def respond(
446
  messages.append({"role": "user", "content": message})
447
 
448
  #response = ""
449
- response = model_response(messages['content'])
 
 
 
 
 
 
 
 
450
  return response
451
 
452
 
 
446
  messages.append({"role": "user", "content": message})
447
 
448
  #response = ""
449
+ output_text = ""
450
+
451
+ # Concatenate content from each dictionary in messages
452
+ for msg in messages:
453
+ output_text += msg["content"] + "\n" # Add a newline after each content
454
+
455
+ # Printing the output_text
456
+ #print(output_text)
457
+ response = model_response(output_text)
458
  return response
459
 
460