Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -74,21 +74,22 @@ def analyze_sentiment(sentence):
|
|
74 |
return sentence, results
|
75 |
|
76 |
|
|
|
77 |
custom_css = """
|
78 |
.gradio-container, .gradio-container * {
|
79 |
-
font-size: 0.
|
80 |
}
|
81 |
.gradio-container h1 {
|
82 |
-
font-size: 1rem !important;
|
83 |
}
|
84 |
.gradio-container h2, .gradio-container h3 {
|
85 |
-
font-size: 0.
|
86 |
}
|
87 |
.gradio-container .label {
|
88 |
-
font-size: 0.
|
89 |
}
|
90 |
.gradio-container .output-markdown pre {
|
91 |
-
font-size: 0.
|
92 |
}
|
93 |
"""
|
94 |
|
@@ -103,4 +104,4 @@ with gr.Blocks(css=custom_css) as demo:
|
|
103 |
|
104 |
dropdown.change(analyze_sentiment, inputs=[dropdown], outputs=[text_output, sentiment_output])
|
105 |
|
106 |
-
demo.launch()
|
|
|
74 |
return sentence, results
|
75 |
|
76 |
|
77 |
+
# Define custom CSS with slightly larger font size
|
78 |
custom_css = """
|
79 |
.gradio-container, .gradio-container * {
|
80 |
+
font-size: 0.65rem !important;
|
81 |
}
|
82 |
.gradio-container h1 {
|
83 |
+
font-size: 1.1rem !important;
|
84 |
}
|
85 |
.gradio-container h2, .gradio-container h3 {
|
86 |
+
font-size: 0.9rem !important;
|
87 |
}
|
88 |
.gradio-container .label {
|
89 |
+
font-size: 0.75rem !important;
|
90 |
}
|
91 |
.gradio-container .output-markdown pre {
|
92 |
+
font-size: 0.6rem !important;
|
93 |
}
|
94 |
"""
|
95 |
|
|
|
104 |
|
105 |
dropdown.change(analyze_sentiment, inputs=[dropdown], outputs=[text_output, sentiment_output])
|
106 |
|
107 |
+
demo.launch()
|