Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
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 |
|