neovalle commited on
Commit
8c40bcd
·
verified ·
1 Parent(s): f898b39

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -77,7 +77,7 @@ def get_random_myth_or_fact():
77
  fact_check_response = f"✅ **FACT**\n\nIndeed, {row['fact']}"
78
 
79
  # Return the myth/fact, update the personas, and fill the responses
80
- return myth_or_fact, persona, "Fact-Checker", persona_response, fact_check_response, "### Fact Checker"
81
 
82
  # Dynamically load persona names from instructions folder
83
  personas = [os.path.splitext(f)[0].capitalize() for f in os.listdir("instructions") if f.endswith(".txt")]
@@ -126,7 +126,7 @@ with gr.Blocks() as demo:
126
  myth_fact_button.click(
127
  fn=get_random_myth_or_fact,
128
  inputs=[],
129
- outputs=[user_input, persona1, persona2, output1, output2, output2_title]
130
  )
131
 
132
  # Ask button for normal questions
 
77
  fact_check_response = f"✅ **FACT**\n\nIndeed, {row['fact']}"
78
 
79
  # Return the myth/fact, update the personas, and fill the responses
80
+ return myth_or_fact, persona, persona_response, fact_check_response, f"### {persona} Responds","### Fact Checker"
81
 
82
  # Dynamically load persona names from instructions folder
83
  personas = [os.path.splitext(f)[0].capitalize() for f in os.listdir("instructions") if f.endswith(".txt")]
 
126
  myth_fact_button.click(
127
  fn=get_random_myth_or_fact,
128
  inputs=[],
129
+ outputs=[user_input, persona1, output1, output2, output1_title, output2_title]
130
  )
131
 
132
  # Ask button for normal questions