Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -236,21 +236,31 @@ with gr.Blocks(theme=gr.themes.Soft(), title="Dataset Annotation Tool", css=cust
|
|
| 236 |
# Login Interface
|
| 237 |
with gr.Group(visible=True, elem_id="login-group") as login_interface:
|
| 238 |
gr.Markdown("## Login")
|
| 239 |
-
gr.Markdown("
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 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 |
-
|
|
|
|
|
|
|
| 254 |
login_status = gr.Markdown("")
|
| 255 |
|
| 256 |
# Annotation Interface
|
|
|
|
| 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 |
+
with gr.Accordion("Click here to see the full annotation guidelines:", open=False):
|
| 241 |
+
gr.Markdown("""
|
| 242 |
+
## Detailed Information
|
| 243 |
+
|
| 244 |
+
This content is hidden by default and can be expanded.
|
| 245 |
+
|
| 246 |
+
- Point 1
|
| 247 |
+
- Point 2
|
| 248 |
+
- Point 3
|
| 249 |
+
|
| 250 |
+
You can put any Gradio components here, including:
|
| 251 |
+
- Markdown
|
| 252 |
+
- Code blocks
|
| 253 |
+
- Images
|
| 254 |
+
- Interactive components
|
| 255 |
+
""")
|
| 256 |
user_id_input = gr.Textbox(
|
| 257 |
label="Enter your unique annotator ID to begin",
|
| 258 |
placeholder="Annotator ID",
|
| 259 |
scale=3
|
| 260 |
)
|
| 261 |
+
with gr.Row():
|
| 262 |
+
login_btn = gr.Button("Login", variant="primary", scale=0)
|
| 263 |
+
gr.HTML("")
|
| 264 |
login_status = gr.Markdown("")
|
| 265 |
|
| 266 |
# Annotation Interface
|