JRQi commited on
Commit
296335f
1 Parent(s): c221cb8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +49 -1
app.py CHANGED
@@ -40,8 +40,56 @@ def reset_modules():
40
  # )
41
 
42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
 
44
- with gr.Blocks(theme=gr.themes.Default(text_size=gr.themes.sizes.text_md)) as demo:
 
 
45
  pre_load_1 = pipeline("sentiment-analysis", model="nlptown/bert-base-multilingual-uncased-sentiment")
46
  pre_load_2 = pipeline("text-classification", model='DTAI-KULeuven/robbert-v2-dutch-sentiment')
47
  pre_load_3 = pipeline("text-classification", model='distilbert-base-uncased-finetuned-sst-2-english')
 
40
  # )
41
 
42
 
43
+ theme = gr.themes.Default(
44
+ primary_hue="blue",
45
+ ).set(
46
+ border_color_accent_subdued='*border_color_accent',
47
+ link_text_color='*primary_600',
48
+ block_shadow='none',
49
+ block_shadow_dark='none',
50
+ form_gap_width='0px',
51
+ checkbox_label_background_fill='*button_secondary_background_fill',
52
+ checkbox_label_background_fill_dark='*button_secondary_background_fill',
53
+ checkbox_label_background_fill_hover='*button_secondary_background_fill_hover',
54
+ checkbox_label_background_fill_hover_dark='*button_secondary_background_fill_hover',
55
+ checkbox_label_shadow='none',
56
+ error_background_fill_dark='*background_fill_primary',
57
+ input_background_fill='*neutral_100',
58
+ input_background_fill_dark='*neutral_700',
59
+ input_border_width='0px',
60
+ input_border_width_dark='0px',
61
+ input_shadow='none',
62
+ input_shadow_dark='none',
63
+ input_shadow_focus='*input_shadow',
64
+ input_shadow_focus_dark='*input_shadow',
65
+ stat_background_fill='*primary_300',
66
+ stat_background_fill_dark='*primary_500',
67
+ button_shadow='none',
68
+ button_shadow_active='none',
69
+ button_shadow_hover='none',
70
+ button_transition='background-color 0.2s ease',
71
+ button_primary_background_fill='*primary_200',
72
+ button_primary_background_fill_dark='*primary_700',
73
+ button_primary_background_fill_hover='*button_primary_background_fill',
74
+ button_primary_background_fill_hover_dark='*button_primary_background_fill',
75
+ button_primary_border_color_dark='*primary_600',
76
+ button_secondary_background_fill='*neutral_200',
77
+ button_secondary_background_fill_dark='*neutral_600',
78
+ button_secondary_background_fill_hover='*button_secondary_background_fill',
79
+ button_secondary_background_fill_hover_dark='*button_secondary_background_fill',
80
+ button_cancel_background_fill='*button_secondary_background_fill',
81
+ button_cancel_background_fill_dark='*button_secondary_background_fill',
82
+ button_cancel_background_fill_hover='*button_cancel_background_fill',
83
+ button_cancel_background_fill_hover_dark='*button_cancel_background_fill',
84
+ button_cancel_border_color='*button_secondary_border_color',
85
+ button_cancel_border_color_dark='*button_secondary_border_color',
86
+ button_cancel_text_color='*button_secondary_text_color',
87
+ button_cancel_text_color_dark='*button_secondary_text_color'
88
+ )
89
 
90
+ # theme = gr.themes.Default(text_size=gr.themes.sizes.text_md)
91
+
92
+ with gr.Blocks(theme=theme) as demo:
93
  pre_load_1 = pipeline("sentiment-analysis", model="nlptown/bert-base-multilingual-uncased-sentiment")
94
  pre_load_2 = pipeline("text-classification", model='DTAI-KULeuven/robbert-v2-dutch-sentiment')
95
  pre_load_3 = pipeline("text-classification", model='distilbert-base-uncased-finetuned-sst-2-english')