Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -89,13 +89,13 @@ with gr.Blocks(theme=gr.themes.Base(), title="PropagationShield v2.0") as demo:
|
|
| 89 |
question_input = gr.Textbox(
|
| 90 |
label="User Question",
|
| 91 |
lines=2,
|
| 92 |
-
placeholder="e.g.,
|
| 93 |
)
|
| 94 |
|
| 95 |
ground_truth_input = gr.Textbox(
|
| 96 |
label="Ground Truths (Numbered Passages)",
|
| 97 |
lines=6,
|
| 98 |
-
placeholder="[
|
| 99 |
)
|
| 100 |
|
| 101 |
upstream_answer_input = gr.Textbox(
|
|
@@ -121,14 +121,14 @@ with gr.Blocks(theme=gr.themes.Base(), title="PropagationShield v2.0") as demo:
|
|
| 121 |
gr.Examples(
|
| 122 |
examples=[
|
| 123 |
[
|
| 124 |
-
"
|
| 125 |
-
"[
|
| 126 |
-
"
|
| 127 |
],
|
| 128 |
[
|
| 129 |
-
"What is the
|
| 130 |
-
"[
|
| 131 |
-
"
|
| 132 |
]
|
| 133 |
],
|
| 134 |
inputs=[question_input, ground_truth_input, upstream_answer_input],
|
|
|
|
| 89 |
question_input = gr.Textbox(
|
| 90 |
label="User Question",
|
| 91 |
lines=2,
|
| 92 |
+
placeholder="e.g., Who developed the theory of relativity?"
|
| 93 |
)
|
| 94 |
|
| 95 |
ground_truth_input = gr.Textbox(
|
| 96 |
label="Ground Truths (Numbered Passages)",
|
| 97 |
lines=6,
|
| 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(
|
|
|
|
| 121 |
gr.Examples(
|
| 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],
|