neovalle commited on
Commit
64ef3d3
·
verified ·
1 Parent(s): 70d7c81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
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"❌ **MYTH**\n\nThe fact is: {row['fact']}"
 
77
  else:
78
- fact_check_response = f" **FACT**\n\nIndeed, {row['fact']}"
 
79
 
80
  # Return the myth/fact, update the personas, and fill the responses
81
- return myth_or_fact, persona, persona_response, fact_check_response, f"### {persona} Responds","### Fact Checker"
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