davda54 commited on
Commit
e8fa94c
·
verified ·
1 Parent(s): b37157c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -3
app.py CHANGED
@@ -307,19 +307,31 @@ def logout() -> Tuple:
307
 
308
  # Create Gradio interface
309
  custom_css = """
 
 
 
 
 
 
 
 
 
 
 
 
310
  """
311
 
312
  # Create Gradio interface
313
  with gr.Blocks(theme=gr.themes.Soft(font=[gr.themes.GoogleFont("Source Sans Pro"), "Arial"]), title="Dataset Annotation Tool", css=custom_css) as app:
314
  gr.Markdown("# Norwegian Fluency Annotation")
315
- with gr.Accordion("*Click here to see the full annotation guidelines:*", open=False):
316
  gr.Markdown(guideline, padding=True)
317
 
318
  user_state = gr.State("")
319
 
320
  # Login Interface
321
- with gr.Column(visible=True, elem_id="login-group") as login_interface:
322
- with gr.Column(variant="panel"):
323
  gr.Markdown("## Login", padding=True)
324
  user_id_input = gr.Textbox(
325
  label="Enter your unique annotator ID to begin",
 
307
 
308
  # Create Gradio interface
309
  custom_css = """
310
+ #login-group {
311
+ background-color: white !important;
312
+ }
313
+ #login-group > * {
314
+ background-color: white !important;
315
+ }
316
+ #login-group .gr-group {
317
+ background-color: white !important;
318
+ }
319
+ #login-group .gr-form {
320
+ background-color: white !important;
321
+ }
322
  """
323
 
324
  # Create Gradio interface
325
  with gr.Blocks(theme=gr.themes.Soft(font=[gr.themes.GoogleFont("Source Sans Pro"), "Arial"]), title="Dataset Annotation Tool", css=custom_css) as app:
326
  gr.Markdown("# Norwegian Fluency Annotation")
327
+ with gr.Accordion("Click here to see the full annotation guidelines:", open=False):
328
  gr.Markdown(guideline, padding=True)
329
 
330
  user_state = gr.State("")
331
 
332
  # Login Interface
333
+ with gr.Column(visible=True) as login_interface:
334
+ with gr.Column(variant="panel", elem_id="login-group"):
335
  gr.Markdown("## Login", padding=True)
336
  user_id_input = gr.Textbox(
337
  label="Enter your unique annotator ID to begin",