JRQi commited on
Commit
6dde126
1 Parent(s): 7dc320e

Update app.py

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