Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -72,7 +72,6 @@ class Soft(Base):
|
|
| 72 |
block_title_text_color="*primary_500",
|
| 73 |
block_title_text_color_dark="white",
|
| 74 |
block_label_margin="*spacing_md",
|
| 75 |
-
block_shadow="*shadow_drop",
|
| 76 |
|
| 77 |
# Inputs
|
| 78 |
input_background_fill="white",
|
|
@@ -431,25 +430,28 @@ custom_css = """
|
|
| 431 |
}
|
| 432 |
#login-group .gr-form {
|
| 433 |
background-color: white !important;
|
|
|
|
|
|
|
|
|
|
| 434 |
}
|
| 435 |
"""
|
| 436 |
|
| 437 |
# Create Gradio interface
|
| 438 |
with gr.Blocks(theme=Soft(font=[gr.themes.GoogleFont("Source Sans Pro"), "Arial"]), title="Dataset Annotation Tool", css=custom_css) as app:
|
| 439 |
gr.Markdown("# Norwegian Fluency Annotation")
|
| 440 |
-
with gr.Accordion("Click here to see the full annotation guidelines:", open=False):
|
| 441 |
gr.Markdown(guideline, padding=True)
|
| 442 |
|
| 443 |
user_state = gr.State("")
|
| 444 |
|
| 445 |
# Login Interface
|
| 446 |
with gr.Column(visible=True) as login_interface:
|
| 447 |
-
with gr.Column(variant="panel", elem_id="login-group"):
|
| 448 |
gr.Markdown("## Log in", padding=True)
|
| 449 |
user_id_input = gr.Textbox(
|
| 450 |
label="Enter your unique annotator ID to begin",
|
| 451 |
placeholder="Annotator ID",
|
| 452 |
-
container=
|
| 453 |
)
|
| 454 |
with gr.Row():
|
| 455 |
login_btn = gr.Button("Login", variant="primary", scale=0.2, min_width=100)
|
|
|
|
| 72 |
block_title_text_color="*primary_500",
|
| 73 |
block_title_text_color_dark="white",
|
| 74 |
block_label_margin="*spacing_md",
|
|
|
|
| 75 |
|
| 76 |
# Inputs
|
| 77 |
input_background_fill="white",
|
|
|
|
| 430 |
}
|
| 431 |
#login-group .gr-form {
|
| 432 |
background-color: white !important;
|
| 433 |
+
},
|
| 434 |
+
.light-shadow {
|
| 435 |
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
|
| 436 |
}
|
| 437 |
"""
|
| 438 |
|
| 439 |
# Create Gradio interface
|
| 440 |
with gr.Blocks(theme=Soft(font=[gr.themes.GoogleFont("Source Sans Pro"), "Arial"]), title="Dataset Annotation Tool", css=custom_css) as app:
|
| 441 |
gr.Markdown("# Norwegian Fluency Annotation")
|
| 442 |
+
with gr.Accordion("Click here to see the full annotation guidelines:", open=False, elem_classes="light-shadow"):
|
| 443 |
gr.Markdown(guideline, padding=True)
|
| 444 |
|
| 445 |
user_state = gr.State("")
|
| 446 |
|
| 447 |
# Login Interface
|
| 448 |
with gr.Column(visible=True) as login_interface:
|
| 449 |
+
with gr.Column(variant="panel", elem_id="login-group", elem_classes="light-shadow"):
|
| 450 |
gr.Markdown("## Log in", padding=True)
|
| 451 |
user_id_input = gr.Textbox(
|
| 452 |
label="Enter your unique annotator ID to begin",
|
| 453 |
placeholder="Annotator ID",
|
| 454 |
+
container=True
|
| 455 |
)
|
| 456 |
with gr.Row():
|
| 457 |
login_btn = gr.Button("Login", variant="primary", scale=0.2, min_width=100)
|