Spaces:
Sleeping
Sleeping
Commit
·
1e70cce
1
Parent(s):
406b1bf
update
Browse files
app.py
CHANGED
@@ -114,16 +114,15 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="blue"), title="Answer Verificat
|
|
114 |
max_tokens = gr.Slider(minimum=32, maximum=512, value=128, step=32, label="Max Tokens")
|
115 |
|
116 |
with gr.Column(scale=1):
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
result = gr.Textbox(label="Verification Result", placeholder="Result will appear here...", lines=5)
|
127 |
|
128 |
# Connect the interface to the verification function
|
129 |
verify_btn.click(
|
|
|
114 |
max_tokens = gr.Slider(minimum=32, maximum=512, value=128, step=32, label="Max Tokens")
|
115 |
|
116 |
with gr.Column(scale=1):
|
117 |
+
gr.Markdown("## Input")
|
118 |
+
question = gr.Textbox(lines=3, label="Question", placeholder="Enter the question here...")
|
119 |
+
ground_truth = gr.Textbox(lines=5, label="Ground Truth Answer", placeholder="Enter the correct answer here...")
|
120 |
+
model_answer = gr.Textbox(lines=5, label="Model Answer", placeholder="Enter the answer to verify here...")
|
121 |
+
|
122 |
+
verify_btn = gr.Button("Verify Answer", variant="primary")
|
123 |
+
|
124 |
+
gr.Markdown("## Result")
|
125 |
+
result = gr.Textbox(label="Verification Result", placeholder="Result will appear here...", lines=5)
|
|
|
126 |
|
127 |
# Connect the interface to the verification function
|
128 |
verify_btn.click(
|