throaway2854 commited on
Commit
fef4594
·
verified ·
1 Parent(s): 9ea7203

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -68,8 +68,9 @@ kaomojis = [
68
  ]
69
 
70
  css = """
71
- .tab {
72
- font-weight: bold !important;
 
73
  }
74
  """
75
 
@@ -637,13 +638,13 @@ def tag_video_interface(
637
  return "", {"error": str(e)}
638
 
639
 
640
- with gr.Blocks(title=TITLE) as demo:
641
  gr.Markdown(f"## {TITLE}")
642
  gr.Markdown(DESCRIPTION)
643
 
644
  with gr.Tabs():
645
  # ---------------- TAB 1: TAGGING ----------------
646
- with gr.Tab("Tagging"):
647
  with gr.Row():
648
  with gr.Column():
649
  video_input = gr.Video(
@@ -711,7 +712,7 @@ with gr.Blocks(title=TITLE) as demo:
711
 
712
 
713
  # ---------------- TAB 2: TAG CONTROL ----------------
714
- with gr.Tab("Tag Control"):
715
  gr.Markdown("### Tag Substitutes")
716
  gr.Markdown(
717
  "Add rows where **Original Tag** will be replaced by **Substitute Tag** "
 
68
  ]
69
 
70
  css = """
71
+ #tagging-tab-button,
72
+ #tag-control-tab-button {
73
+ font-weight: 700 !important;
74
  }
75
  """
76
 
 
638
  return "", {"error": str(e)}
639
 
640
 
641
+ with gr.Blocks(title=TITLE, css=css) as demo:
642
  gr.Markdown(f"## {TITLE}")
643
  gr.Markdown(DESCRIPTION)
644
 
645
  with gr.Tabs():
646
  # ---------------- TAB 1: TAGGING ----------------
647
+ with gr.Tab("Tagging", elem_id="tagging-tab"):
648
  with gr.Row():
649
  with gr.Column():
650
  video_input = gr.Video(
 
712
 
713
 
714
  # ---------------- TAB 2: TAG CONTROL ----------------
715
+ with gr.Tab("Tag Control", elem_id="tag-control-tab"):
716
  gr.Markdown("### Tag Substitutes")
717
  gr.Markdown(
718
  "Add rows where **Original Tag** will be replaced by **Substitute Tag** "