davda54 commited on
Commit
a35b6f2
·
verified ·
1 Parent(s): 21099b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -10
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("""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
 
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