davda54 commited on
Commit
760ef75
·
verified ·
1 Parent(s): 1788c7c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -9
app.py CHANGED
@@ -214,7 +214,6 @@ def logout() -> Tuple:
214
  custom_css = """
215
  #login-group {
216
  background-color: white !important;
217
- padding: 20px;
218
  }
219
  #login-group > * {
220
  background-color: white !important;
@@ -230,14 +229,7 @@ custom_css = """
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
- with gr.Row():
239
- gr.Markdown("## Login\n\nAnnotate 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
 
@@ -253,6 +245,11 @@ with gr.Blocks(theme=gr.themes.Soft(), title="Dataset Annotation Tool", css=cust
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",
 
214
  custom_css = """
215
  #login-group {
216
  background-color: white !important;
 
217
  }
218
  #login-group > * {
219
  background-color: white !important;
 
229
  # Create Gradio interface
230
  with gr.Blocks(theme=gr.themes.Soft(), title="Dataset Annotation Tool", css=custom_css) as app:
231
  gr.Markdown("# Norwegian Fluency Annotation")
232
+ with gr.Accordion("▶ Click here to see the full annotation guidelines:", open=False):
 
 
 
 
 
 
 
233
  gr.Markdown("""
234
  ## Detailed Information
235
 
 
245
  - Images
246
  - Interactive components
247
  """)
248
+
249
+ user_state = gr.State("")
250
+
251
+ # Login Interface
252
+ with gr.Group(visible=True, elem_id="login-group", title="Login") as login_interface:
253
  user_id_input = gr.Textbox(
254
  label="Enter your unique annotator ID to begin",
255
  placeholder="Annotator ID",