zhangchenxu commited on
Commit
1e70cce
·
1 Parent(s): 406b1bf
Files changed (1) hide show
  1. app.py +9 -10
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
- with gr.Box():
118
- gr.Markdown("## Input")
119
- question = gr.Textbox(lines=3, label="Question", placeholder="Enter the question here...")
120
- ground_truth = gr.Textbox(lines=5, label="Ground Truth Answer", placeholder="Enter the correct answer here...")
121
- model_answer = gr.Textbox(lines=5, label="Model Answer", placeholder="Enter the answer to verify here...")
122
-
123
- verify_btn = gr.Button("Verify Answer", variant="primary")
124
-
125
- gr.Markdown("## Result")
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(