Update app.py
Browse files
app.py
CHANGED
@@ -40,14 +40,7 @@ def chat():
|
|
40 |
|
41 |
try:
|
42 |
# Fully async call to query MoA chain
|
43 |
-
|
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 |
|
|
|
40 |
|
41 |
try:
|
42 |
# Fully async call to query MoA chain
|
43 |
+
final_response = asyncio.run(query_moa_chain(user_input, settings))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
return jsonify({"response": final_response})
|
46 |
|