Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,8 @@ css = """
|
|
47 |
.feedback textarea {font-size: 50px !important}
|
48 |
"""
|
49 |
|
50 |
-
|
|
|
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')
|
@@ -97,7 +98,7 @@ with gr.Blocks(css=css, theme=gr.themes.Default(text_size=gr.themes.sizes.text_m
|
|
97 |
# gr.Markdown(''' <p style="text-align: center;"> or </p> ''')
|
98 |
sample_button_nl = gr.Button("Click to get a review in Dutch.", size='sm')
|
99 |
|
100 |
-
input_text = gr.Textbox(label="Review:", value="HELLO! Hallo!", visible=False, container=False)
|
101 |
interpretation1 = gr.components.Interpretation(input_text, elem_classes="feedback")
|
102 |
|
103 |
slider_1_1 = gr.Slider(label="Your rating: Dislike(0) —> Like(10)", maximum=10, step=1, container=True, min_width=200, height=80, show_label=True, interactive=True)
|
|
|
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')
|
|
|
98 |
# gr.Markdown(''' <p style="text-align: center;"> or </p> ''')
|
99 |
sample_button_nl = gr.Button("Click to get a review in Dutch.", size='sm')
|
100 |
|
101 |
+
input_text = gr.Textbox(label="Review:", value="HELLO! Hallo!", visible=False, container=False, elem_classes="feedback")
|
102 |
interpretation1 = gr.components.Interpretation(input_text, elem_classes="feedback")
|
103 |
|
104 |
slider_1_1 = gr.Slider(label="Your rating: Dislike(0) —> Like(10)", maximum=10, step=1, container=True, min_width=200, height=80, show_label=True, interactive=True)
|