Update app.py
Browse files
app.py
CHANGED
@@ -142,13 +142,13 @@ def record_input(id, turn, annotator, alignment, quality, consistency, overall):
|
|
142 |
|
143 |
# Gradio Interface
|
144 |
def create_interface():
|
145 |
-
with gr.Blocks(
|
146 |
gr.Markdown(instruction_beginning)
|
147 |
|
148 |
# annotator = gr.Textbox(label="Nickname", interactive=True)
|
149 |
annotator = gr.Textbox(label="Annotator Nickname")
|
150 |
|
151 |
-
start_btn = gr.Button("Start")
|
152 |
progress_text = gr.Markdown("Waiting to start.")
|
153 |
# progress_text = gr.Markdown("You have labeled **0** out of 528 potential images.")
|
154 |
|
@@ -171,7 +171,7 @@ def create_interface():
|
|
171 |
slider_overall = gr.Slider(label="Overall Impression", minimum=0, maximum=10, step=1, value=5,
|
172 |
info=overall_info)
|
173 |
|
174 |
-
save_and_continue_btn = gr.Button("Save & Continue")
|
175 |
|
176 |
start_btn.click(
|
177 |
fn=start,
|
|
|
142 |
|
143 |
# Gradio Interface
|
144 |
def create_interface():
|
145 |
+
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
146 |
gr.Markdown(instruction_beginning)
|
147 |
|
148 |
# annotator = gr.Textbox(label="Nickname", interactive=True)
|
149 |
annotator = gr.Textbox(label="Annotator Nickname")
|
150 |
|
151 |
+
start_btn = gr.Button("Start", variant="primary")
|
152 |
progress_text = gr.Markdown("Waiting to start.")
|
153 |
# progress_text = gr.Markdown("You have labeled **0** out of 528 potential images.")
|
154 |
|
|
|
171 |
slider_overall = gr.Slider(label="Overall Impression", minimum=0, maximum=10, step=1, value=5,
|
172 |
info=overall_info)
|
173 |
|
174 |
+
save_and_continue_btn = gr.Button("Save & Continue", variant="primary")
|
175 |
|
176 |
start_btn.click(
|
177 |
fn=start,
|