Spaces:
Running
Running
Commit
·
2924e8e
1
Parent(s):
942cfa1
UI Fixes
Browse files- gradio_app.py +10 -19
gradio_app.py
CHANGED
@@ -3,7 +3,7 @@ from model.analyzer import analyze_content
|
|
3 |
import asyncio
|
4 |
import time
|
5 |
|
6 |
-
# Custom CSS for dark theme, animations, and
|
7 |
custom_css = """
|
8 |
.gradio-container {
|
9 |
background: #121212 !important;
|
@@ -30,22 +30,10 @@ custom_css = """
|
|
30 |
animation: fadeInText 1.5s ease-out;
|
31 |
}
|
32 |
|
33 |
-
.treat-title span {
|
34 |
-
color: #fff;
|
35 |
-
}
|
36 |
-
|
37 |
-
.treat-title .web {
|
38 |
-
font-size: 0.4em;
|
39 |
-
color: #4f46e5;
|
40 |
-
margin-top: -15px;
|
41 |
-
display: block;
|
42 |
-
animation: fadeInText 1.5s ease-out 0.5s;
|
43 |
-
}
|
44 |
-
|
45 |
.treat-title p {
|
46 |
font-size: 1.3em;
|
47 |
-
color: #
|
48 |
-
animation: fadeInText 1.5s ease-out
|
49 |
}
|
50 |
|
51 |
.highlight {
|
@@ -90,12 +78,12 @@ custom_css = """
|
|
90 |
|
91 |
.gradio-button:hover {
|
92 |
transform: scale(1.1) !important;
|
93 |
-
background-color: #
|
94 |
}
|
95 |
|
96 |
.gradio-button:active {
|
97 |
transform: scale(0.98) !important;
|
98 |
-
background-color: #
|
99 |
}
|
100 |
|
101 |
label {
|
@@ -178,8 +166,11 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Soft()) as iface:
|
|
178 |
gr.HTML("""
|
179 |
<div class="treat-title">
|
180 |
<h1>TREAT</h1>
|
181 |
-
<span>
|
182 |
-
|
|
|
|
|
|
|
183 |
</div>
|
184 |
""")
|
185 |
|
|
|
3 |
import asyncio
|
4 |
import time
|
5 |
|
6 |
+
# Custom CSS for dark theme, animations, and purple accent color
|
7 |
custom_css = """
|
8 |
.gradio-container {
|
9 |
background: #121212 !important;
|
|
|
30 |
animation: fadeInText 1.5s ease-out;
|
31 |
}
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
.treat-title p {
|
34 |
font-size: 1.3em;
|
35 |
+
color: #4f46e5;
|
36 |
+
animation: fadeInText 1.5s ease-out 0.5s;
|
37 |
}
|
38 |
|
39 |
.highlight {
|
|
|
78 |
|
79 |
.gradio-button:hover {
|
80 |
transform: scale(1.1) !important;
|
81 |
+
background-color: #5749d3 !important;
|
82 |
}
|
83 |
|
84 |
.gradio-button:active {
|
85 |
transform: scale(0.98) !important;
|
86 |
+
background-color: #4b40bb !important;
|
87 |
}
|
88 |
|
89 |
label {
|
|
|
166 |
gr.HTML("""
|
167 |
<div class="treat-title">
|
168 |
<h1>TREAT</h1>
|
169 |
+
<p><span class="highlight">T</span>rigger
|
170 |
+
<span class="highlight">R</span>ecognition for
|
171 |
+
<span class="highlight">E</span>njoyable and
|
172 |
+
<span class="highlight">A</span>ppropriate
|
173 |
+
<span class="highlight">T</span>elevision</p>
|
174 |
</div>
|
175 |
""")
|
176 |
|