UntilDot commited on
Commit
08e28d5
·
verified ·
1 Parent(s): 3dc0fe2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -42,7 +42,12 @@ def chat():
42
  # Fully async call to query MoA chain
43
  results = asyncio.run(query_moa_chain(user_input, settings))
44
 
45
- final_response = "\n".join(results)
 
 
 
 
 
46
 
47
  return jsonify({"response": final_response})
48
 
 
42
  # Fully async call to query MoA chain
43
  results = asyncio.run(query_moa_chain(user_input, settings))
44
 
45
+ # Label each response clearly
46
+ model_labels = ["LLM-A", "LLM-B", "LLM-C", "Aggregator"]
47
+ labeled = [f"[{label}]\n{resp}" for label, resp in zip(model_labels, results)]
48
+
49
+ # Join with double line breaks for separation
50
+ final_response = "\n\n".join(labeled)
51
 
52
  return jsonify({"response": final_response})
53