Spaces:
Sleeping
Sleeping
Allen Park
commited on
Commit
·
d5478e2
1
Parent(s):
1861169
add clear button
Browse files
app.py
CHANGED
@@ -126,7 +126,9 @@ with gr.Blocks() as demo:
|
|
126 |
question = gr.Textbox(label="Question")
|
127 |
document = gr.Textbox(label="Document")
|
128 |
answer = gr.Textbox(label="Answer")
|
129 |
-
|
|
|
|
|
130 |
with gr.Column(scale=1):
|
131 |
reasoning = gr.Textbox(label="Reasoning")
|
132 |
score = gr.Textbox(label="Score (FAIL if Hallucinated, PASS if not)")
|
|
|
126 |
question = gr.Textbox(label="Question")
|
127 |
document = gr.Textbox(label="Document")
|
128 |
answer = gr.Textbox(label="Answer")
|
129 |
+
with gr.Row():
|
130 |
+
clear_btn = gr.ClearButton([question, document, answer])
|
131 |
+
submit_button = gr.Button("Submit")
|
132 |
with gr.Column(scale=1):
|
133 |
reasoning = gr.Textbox(label="Reasoning")
|
134 |
score = gr.Textbox(label="Score (FAIL if Hallucinated, PASS if not)")
|