Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -211,14 +211,28 @@ def logout() -> Tuple:
|
|
| 211 |
)
|
| 212 |
|
| 213 |
# Create Gradio interface
|
| 214 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 215 |
gr.Markdown("# Dataset Annotation Tool")
|
| 216 |
gr.Markdown("Annotate which response is more fluent for each prompt.")
|
| 217 |
|
| 218 |
user_state = gr.State("")
|
| 219 |
|
| 220 |
# Login Interface
|
| 221 |
-
with gr.Group(visible=True) as login_interface:
|
| 222 |
gr.Markdown("## Login")
|
| 223 |
gr.Markdown("Enter your annotator ID to begin. Your ID determines the order of samples you'll see.")
|
| 224 |
|
|
@@ -233,7 +247,7 @@ with gr.Blocks(theme=gr.themes.Soft(), title="Dataset Annotation Tool") as app:
|
|
| 233 |
login_status = gr.Markdown("")
|
| 234 |
|
| 235 |
# Annotation Interface
|
| 236 |
-
with gr.Group(visible=False) as annotation_interface:
|
| 237 |
progress_label = gr.Markdown("")
|
| 238 |
|
| 239 |
# Row 1: Prompt
|
|
|
|
| 211 |
)
|
| 212 |
|
| 213 |
# Create Gradio interface
|
| 214 |
+
white_background_css = """
|
| 215 |
+
#login-group {
|
| 216 |
+
background-color: white !important;
|
| 217 |
+
padding: 20px;
|
| 218 |
+
border-radius: 8px;
|
| 219 |
+
},
|
| 220 |
+
#annotation-group {
|
| 221 |
+
background-color: white !important;
|
| 222 |
+
padding: 20px;
|
| 223 |
+
border-radius: 8px;
|
| 224 |
+
}
|
| 225 |
+
"""
|
| 226 |
+
|
| 227 |
+
# Create Gradio interface
|
| 228 |
+
with gr.Blocks(theme=gr.themes.Soft(), title="Dataset Annotation Tool", css=custom_css) as app:
|
| 229 |
gr.Markdown("# Dataset Annotation Tool")
|
| 230 |
gr.Markdown("Annotate which response is more fluent for each prompt.")
|
| 231 |
|
| 232 |
user_state = gr.State("")
|
| 233 |
|
| 234 |
# Login Interface
|
| 235 |
+
with gr.Group(visible=True, elem_id="login-group") as login_interface:
|
| 236 |
gr.Markdown("## Login")
|
| 237 |
gr.Markdown("Enter your annotator ID to begin. Your ID determines the order of samples you'll see.")
|
| 238 |
|
|
|
|
| 247 |
login_status = gr.Markdown("")
|
| 248 |
|
| 249 |
# Annotation Interface
|
| 250 |
+
with gr.Group(visible=False, elem_id="annotation-group") as annotation_interface:
|
| 251 |
progress_label = gr.Markdown("")
|
| 252 |
|
| 253 |
# Row 1: Prompt
|