JRQi commited on
Commit
e1c1f2b
1 Parent(s): de5ddcb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -2
app.py CHANGED
@@ -37,8 +37,17 @@ def reset_scores():
37
  def reset_modules():
38
  res_empty = {"original": "", "interpretation": []}
39
  return res_empty, 0, 0, [], ""
40
-
41
- with gr.Blocks(theme=gr.themes.Default(text_size=gr.themes.sizes.text_md)) as demo:
 
 
 
 
 
 
 
 
 
42
  pre_load_1 = pipeline("sentiment-analysis", model="nlptown/bert-base-multilingual-uncased-sentiment")
43
  pre_load_2 = pipeline("text-classification", model='DTAI-KULeuven/robbert-v2-dutch-sentiment')
44
  pre_load_3 = pipeline("text-classification", model='distilbert-base-uncased-finetuned-sst-2-english')
 
37
  def reset_modules():
38
  res_empty = {"original": "", "interpretation": []}
39
  return res_empty, 0, 0, [], ""
40
+
41
+
42
+ theme = gr.themes.Default(text_size=gr.themes.sizes.text_lg).set(
43
+ button_primary_background_fill="#FF0000",
44
+ button_primary_background_fill_dark="#AAAAAA",
45
+ button_primary_border="*button_primary_background_fill",
46
+ button_primary_border_dark="*button_primary_background_fill_dark",
47
+ input_text_size="24px",
48
+ )
49
+
50
+ with gr.Blocks(theme=theme) as demo:
51
  pre_load_1 = pipeline("sentiment-analysis", model="nlptown/bert-base-multilingual-uncased-sentiment")
52
  pre_load_2 = pipeline("text-classification", model='DTAI-KULeuven/robbert-v2-dutch-sentiment')
53
  pre_load_3 = pipeline("text-classification", model='distilbert-base-uncased-finetuned-sst-2-english')