adnlp commited on
Commit
0088ecb
·
verified ·
1 Parent(s): 20c2d71

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -344,6 +344,17 @@ custom_css = """
344
  background: var(--background-fill-primary); z-index: 1000;
345
  display: flex; justify-content: flex-end; align-items: center; /* right align */
346
  }
 
 
 
 
 
 
 
 
 
 
 
347
  """
348
 
349
  with gr.Blocks(css=custom_css) as demo:
@@ -413,7 +424,7 @@ with gr.Blocks(css=custom_css) as demo:
413
  vision_encoder_radio = gr.Radio(["CLIP", "BLIP"], label="Vision Encoder")
414
  text_encoder_radio = gr.Radio(["Qwen", "LLaMA"], label="Text Encoder")
415
  warning_markdown = gr.Markdown(visible=False)
416
- btn = gr.Button("Run")
417
 
418
  tsfm_radio.change(on_model_selection, [tsfm_radio], model_id_box)
419
  # tsfm_radio.change(on_model_selection, [tsfm_radio], model_token_box)
 
344
  background: var(--background-fill-primary); z-index: 1000;
345
  display: flex; justify-content: flex-end; align-items: center; /* right align */
346
  }
347
+ .blue-btn {
348
+ background-color: #024397 !important; /* Bootstrap-style blue */
349
+ color: white !important;
350
+ border-radius: 8px !important;
351
+ border: none !important;
352
+ padding: 8px 16px !important;
353
+ font-weight: 600;
354
+ }
355
+ .blue-btn:hover {
356
+ background-color: #0056b3 !important; /* Darker blue on hover */
357
+ }
358
  """
359
 
360
  with gr.Blocks(css=custom_css) as demo:
 
424
  vision_encoder_radio = gr.Radio(["CLIP", "BLIP"], label="Vision Encoder")
425
  text_encoder_radio = gr.Radio(["Qwen", "LLaMA"], label="Text Encoder")
426
  warning_markdown = gr.Markdown(visible=False)
427
+ btn = gr.Button("Run", elem_classes="blue-btn")
428
 
429
  tsfm_radio.change(on_model_selection, [tsfm_radio], model_id_box)
430
  # tsfm_radio.change(on_model_selection, [tsfm_radio], model_token_box)