Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -73,12 +73,14 @@ def get_random_myth_or_fact():
|
|
73 |
|
74 |
# ✅ Fact-checker response logic
|
75 |
if selected_column == "myth":
|
76 |
-
fact_check_response = f"
|
|
|
77 |
else:
|
78 |
-
|
|
|
79 |
|
80 |
# Return the myth/fact, update the personas, and fill the responses
|
81 |
-
return myth_or_fact, persona, persona_response,
|
82 |
|
83 |
def ask_with_titles(p1, p2, q):
|
84 |
# Generate responses
|
|
|
73 |
|
74 |
# ✅ Fact-checker response logic
|
75 |
if selected_column == "myth":
|
76 |
+
fact_check_response = f"{row['fact']} - Myth or Fact?\n\n"
|
77 |
+
fact_check_response += f"❌ **MYTH**\n\nThe fact is: {row['fact']}"
|
78 |
else:
|
79 |
+
fact_response=call_cohere_api("You are an ecolinguistic aware assistant.", f"Elaborate on this fact: {row['fact']}")
|
80 |
+
fact_check_response = f"✅ **FACT**\n\n{fact_response}"
|
81 |
|
82 |
# Return the myth/fact, update the personas, and fill the responses
|
83 |
+
return myth_or_fact, persona, fact_check_response, persona_response,"### Fact Checker", f"### .. and what the {persona} would say about it?:"
|
84 |
|
85 |
def ask_with_titles(p1, p2, q):
|
86 |
# Generate responses
|