Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -307,19 +307,31 @@ def logout() -> Tuple:
|
|
| 307 |
|
| 308 |
# Create Gradio interface
|
| 309 |
custom_css = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 310 |
"""
|
| 311 |
|
| 312 |
# Create Gradio interface
|
| 313 |
with gr.Blocks(theme=gr.themes.Soft(font=[gr.themes.GoogleFont("Source Sans Pro"), "Arial"]), title="Dataset Annotation Tool", css=custom_css) as app:
|
| 314 |
gr.Markdown("# Norwegian Fluency Annotation")
|
| 315 |
-
with gr.Accordion("
|
| 316 |
gr.Markdown(guideline, padding=True)
|
| 317 |
|
| 318 |
user_state = gr.State("")
|
| 319 |
|
| 320 |
# Login Interface
|
| 321 |
-
with gr.Column(visible=True
|
| 322 |
-
with gr.Column(variant="panel"):
|
| 323 |
gr.Markdown("## Login", padding=True)
|
| 324 |
user_id_input = gr.Textbox(
|
| 325 |
label="Enter your unique annotator ID to begin",
|
|
|
|
| 307 |
|
| 308 |
# Create Gradio interface
|
| 309 |
custom_css = """
|
| 310 |
+
#login-group {
|
| 311 |
+
background-color: white !important;
|
| 312 |
+
}
|
| 313 |
+
#login-group > * {
|
| 314 |
+
background-color: white !important;
|
| 315 |
+
}
|
| 316 |
+
#login-group .gr-group {
|
| 317 |
+
background-color: white !important;
|
| 318 |
+
}
|
| 319 |
+
#login-group .gr-form {
|
| 320 |
+
background-color: white !important;
|
| 321 |
+
}
|
| 322 |
"""
|
| 323 |
|
| 324 |
# Create Gradio interface
|
| 325 |
with gr.Blocks(theme=gr.themes.Soft(font=[gr.themes.GoogleFont("Source Sans Pro"), "Arial"]), title="Dataset Annotation Tool", css=custom_css) as app:
|
| 326 |
gr.Markdown("# Norwegian Fluency Annotation")
|
| 327 |
+
with gr.Accordion("Click here to see the full annotation guidelines:", open=False):
|
| 328 |
gr.Markdown(guideline, padding=True)
|
| 329 |
|
| 330 |
user_state = gr.State("")
|
| 331 |
|
| 332 |
# Login Interface
|
| 333 |
+
with gr.Column(visible=True) as login_interface:
|
| 334 |
+
with gr.Column(variant="panel", elem_id="login-group"):
|
| 335 |
gr.Markdown("## Login", padding=True)
|
| 336 |
user_id_input = gr.Textbox(
|
| 337 |
label="Enter your unique annotator ID to begin",
|