Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,15 @@ def chat_fn(user_input, option1, option2, user_vote=None):
|
|
23 |
gpt_response = get_gpt_response(user_input)
|
24 |
|
25 |
# Format response
|
26 |
-
evo_msg =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
chat_history.append(f"👤 User: {user_input}")
|
28 |
chat_history.append(f"🤖 Evo: {evo_msg}")
|
29 |
chat_history.append(f"🧠 GPT: {gpt_response}")
|
|
|
23 |
gpt_response = get_gpt_response(user_input)
|
24 |
|
25 |
# Format response
|
26 |
+
evo_msg = (
|
27 |
+
f"### 🤖 Evo\n"
|
28 |
+
f"**Answer:** {evo_result['answer']} \n"
|
29 |
+
f"**Reasoning:** {evo_result['reasoning']}\n\n"
|
30 |
+
f"---\n"
|
31 |
+
f"### 🧠 GPT-3.5\n"
|
32 |
+
f"{gpt_response}"
|
33 |
+
)
|
34 |
+
|
35 |
chat_history.append(f"👤 User: {user_input}")
|
36 |
chat_history.append(f"🤖 Evo: {evo_msg}")
|
37 |
chat_history.append(f"🧠 GPT: {gpt_response}")
|