Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -229,20 +229,28 @@ custom_css = """
|
|
| 229 |
|
| 230 |
# Create Gradio interface
|
| 231 |
with gr.Blocks(theme=gr.themes.Soft(), title="Dataset Annotation Tool", css=custom_css) as app:
|
| 232 |
-
gr.Markdown("#
|
| 233 |
-
gr.Markdown("Annotate which response is more fluent for each prompt.")
|
| 234 |
|
| 235 |
user_state = gr.State("")
|
| 236 |
|
| 237 |
# Login Interface
|
| 238 |
with gr.Group(visible=True, elem_id="login-group") as login_interface:
|
| 239 |
gr.Markdown("## Login")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 240 |
user_id_input = gr.Textbox(
|
| 241 |
label="Enter your unique annotator ID to begin",
|
| 242 |
-
placeholder="
|
| 243 |
scale=3
|
| 244 |
)
|
| 245 |
-
login_btn = gr.Button("Login", variant="primary", scale=1)
|
| 246 |
login_status = gr.Markdown("")
|
| 247 |
|
| 248 |
# Annotation Interface
|
|
|
|
| 229 |
|
| 230 |
# Create Gradio interface
|
| 231 |
with gr.Blocks(theme=gr.themes.Soft(), title="Dataset Annotation Tool", css=custom_css) as app:
|
| 232 |
+
gr.Markdown("# Norwegian Fluency Annotation")
|
|
|
|
| 233 |
|
| 234 |
user_state = gr.State("")
|
| 235 |
|
| 236 |
# Login Interface
|
| 237 |
with gr.Group(visible=True, elem_id="login-group") as login_interface:
|
| 238 |
gr.Markdown("## Login")
|
| 239 |
+
gr.Markdown("""Annotate which response is more fluent for each prompt.
|
| 240 |
+
|
| 241 |
+
<details>
|
| 242 |
+
<summary>Click here to see the full annotation guidelines:</summary>
|
| 243 |
+
This is the content that will be hidden by default.
|
| 244 |
+
It can include text, code blocks, images, or other Markdown elements.
|
| 245 |
+
Remember to add an empty line after the `</summary>` tag for proper rendering of subsequent Markdown elements.
|
| 246 |
+
</details>"""
|
| 247 |
+
)
|
| 248 |
user_id_input = gr.Textbox(
|
| 249 |
label="Enter your unique annotator ID to begin",
|
| 250 |
+
placeholder="Annotator ID",
|
| 251 |
scale=3
|
| 252 |
)
|
| 253 |
+
login_btn = gr.Button("Login", variant="primary", scale=1, size=10em)
|
| 254 |
login_status = gr.Markdown("")
|
| 255 |
|
| 256 |
# Annotation Interface
|