richylyq commited on
Commit
98b9978
1 Parent(s): 5327323

test edit theme

Browse files
Files changed (1) hide show
  1. app.py +16 -1
app.py CHANGED
@@ -59,9 +59,24 @@ class myTheme(Base):
59
  font=font,
60
  font_mono=font_mono,
61
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62
 
63
 
64
- def detect_lang(article, target_lang):
65
  """
66
  Language Detection using library langid
67
 
 
59
  font=font,
60
  font_mono=font_mono,
61
  )
62
+ super().set(
63
+ body_background_fill="repeating-linear-gradient(45deg, *primary_200, *primary_200 10px, *primary_50 10px, *primary_50 20px)",
64
+ body_background_fill_dark="repeating-linear-gradient(45deg, *primary_800, *primary_800 10px, *primary_900 10px, *primary_900 20px)",
65
+ button_primary_background_fill="linear-gradient(90deg, *primary_300, *secondary_400)",
66
+ button_primary_background_fill_hover="linear-gradient(90deg, *primary_200, *secondary_300)",
67
+ button_primary_text_color="white",
68
+ button_primary_background_fill_dark="linear-gradient(90deg, *primary_600, *secondary_800)",
69
+ slider_color="*secondary_300",
70
+ slider_color_dark="*secondary_600",
71
+ block_title_text_weight="600",
72
+ block_border_width="3px",
73
+ block_shadow="*shadow_drop_lg",
74
+ button_shadow="*shadow_drop_lg",
75
+ button_large_padding="32px",
76
+ )
77
 
78
 
79
+ def detect_lang(article):
80
  """
81
  Language Detection using library langid
82