dailingx commited on
Commit
11ebb9a
·
verified ·
1 Parent(s): 1921ff7

Update run.py

Browse files
Files changed (1) hide show
  1. run.py +8 -3
run.py CHANGED
@@ -10,6 +10,11 @@ dataset_options = [
10
  ]
11
  fetch_files = []
12
  fetch_files_select_idx = 0
 
 
 
 
 
13
 
14
  def login(token):
15
  u = HFUser.from_token(token)
@@ -46,9 +51,9 @@ def fetch_parquet(u, fname):
46
  gemini_0626_tag_cache = u.fetch_file(gemini_0626_tag)
47
  with open(gemini_0626_tag_cache, 'r') as file:
48
  auto_tag_content_3 = auto_tag_content_3 + file.read()
49
- return _cache, gr.Label(value=auto_tag_content_1, label="gpt_4o_0621"), \
50
- gr.Label(value=auto_tag_content_2, label="gpt_4o_0626"), \
51
- gr.Label(value=auto_tag_content_3, label="gemini_0626")
52
 
53
  def split_parquet(u, file, batch_size):
54
  batch_size = int(batch_size)
 
10
  ]
11
  fetch_files = []
12
  fetch_files_select_idx = 0
13
+ custom_css = """
14
+ .class-for-small-font label {
15
+ font-size: 12px; /* Adjust the font size as needed */
16
+ }
17
+ """
18
 
19
  def login(token):
20
  u = HFUser.from_token(token)
 
51
  gemini_0626_tag_cache = u.fetch_file(gemini_0626_tag)
52
  with open(gemini_0626_tag_cache, 'r') as file:
53
  auto_tag_content_3 = auto_tag_content_3 + file.read()
54
+ return _cache, gr.Label(value=auto_tag_content_1, label="gpt_4o_0621", css_classes=["class-for-small-font"]), \
55
+ gr.Label(value=auto_tag_content_2, label="gpt_4o_0626", css_classes=["class-for-small-font"]), \
56
+ gr.Label(value=auto_tag_content_3, label="gemini_0626", css_classes=["class-for-small-font"])
57
 
58
  def split_parquet(u, file, batch_size):
59
  batch_size = int(batch_size)