neovalle commited on
Commit
0a3dcce
·
verified ·
1 Parent(s): 4ce7def

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -76,10 +76,8 @@ def get_random_myth_or_fact():
76
  else:
77
  fact_check_response = f"✅ **FACT**\n\nIndeed, {row['fact']}"
78
 
79
- output2_value = {"value": fact_check_response, "label": "Fact Checker"}
80
-
81
  # Return the myth/fact, update the personas, and fill the responses
82
- return myth_or_fact, persona, "Fact-Checker", persona_response, output2_value
83
 
84
  # Dynamically load persona names from instructions folder
85
  personas = [os.path.splitext(f)[0].capitalize() for f in os.listdir("instructions") if f.endswith(".txt")]
@@ -112,6 +110,9 @@ with gr.Blocks() as demo:
112
  with gr.Row():
113
  ask_button = gr.Button("🌎 Submit Question")
114
 
 
 
 
115
  with gr.Row():
116
  output1 = gr.Textbox(label="Persona One Responds")
117
  output2 = gr.Textbox(label="Persona Two Responds")
 
76
  else:
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
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")]
 
110
  with gr.Row():
111
  ask_button = gr.Button("🌎 Submit Question")
112
 
113
+ with gr.Row():
114
+ output_text = gr.Textbox("Persona One Responds")
115
+
116
  with gr.Row():
117
  output1 = gr.Textbox(label="Persona One Responds")
118
  output2 = gr.Textbox(label="Persona Two Responds")