pragunk commited on
Commit
f50064b
·
verified ·
1 Parent(s): ba9d65c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -9
app.py CHANGED
@@ -98,11 +98,7 @@ with gr.Blocks(theme=gr.themes.Base(), title="PropagationShield v2.0") as demo:
98
  placeholder="[0] Albert Einstein developed the theory of relativity in the early 20th century.\n[1] The theory revolutionized physics and our understanding of space and time.\n[2] Isaac Newton originally proposed relativity in the 18th century."
99
  )
100
 
101
- upstream_answer_input = gr.Textbox(
102
- label="Hallucinated Answer (From Agent A)",
103
- lines=4,
104
- placeholder="Type the standard AI answer here. Inject a lie to trigger the shield..."
105
- )
106
 
107
  run_btn = gr.Button("RUN PROPAGATION SHIELD 🛡️", variant="primary", size="lg")
108
 
@@ -122,13 +118,11 @@ with gr.Blocks(theme=gr.themes.Base(), title="PropagationShield v2.0") as demo:
122
  examples=[
123
  [
124
  "Who developed the theory of relativity?",
125
- "[0] Albert Einstein developed the theory of relativity in the early 20th century.\n[1] The theory revolutionized physics and our understanding of space and time.\n[2] Isaac Newton originally proposed relativity in the 18th century.",
126
- "Isaac Newton developed the theory of relativity"
127
  ],
128
  [
129
  "What is the boiling point of water at sea level?",
130
- "[0] Water boils at 100°C at standard atmospheric pressure.\n[1] This corresponds to 212°F.\n[2] Some sources claim water boils at 90°C at sea level.",
131
- "Water boils at 90°C at sea level"
132
  ]
133
  ],
134
  inputs=[question_input, ground_truth_input, upstream_answer_input],
 
98
  placeholder="[0] Albert Einstein developed the theory of relativity in the early 20th century.\n[1] The theory revolutionized physics and our understanding of space and time.\n[2] Isaac Newton originally proposed relativity in the 18th century."
99
  )
100
 
101
+
 
 
 
 
102
 
103
  run_btn = gr.Button("RUN PROPAGATION SHIELD 🛡️", variant="primary", size="lg")
104
 
 
118
  examples=[
119
  [
120
  "Who developed the theory of relativity?",
121
+ "[0] Albert Einstein developed the theory of relativity in the early 20th century.\n[1] The theory revolutionized physics and our understanding of space and time.\n[2] Isaac Newton originally proposed relativity in the 18th century."
 
122
  ],
123
  [
124
  "What is the boiling point of water at sea level?",
125
+ "[0] Water boils at 100°C at standard atmospheric pressure.\n[1] This corresponds to 212°F.\n[2] Some sources claim water boils at 90°C at sea level."
 
126
  ]
127
  ],
128
  inputs=[question_input, ground_truth_input, upstream_answer_input],