Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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')
|