Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,7 @@ from gradio.themes.base import Base
|
|
5 |
from gradio.themes.utils import colors, fonts, sizes
|
6 |
from typing import Iterable
|
7 |
|
|
|
8 |
class CustomTheme(Base):
|
9 |
def __init__(
|
10 |
self,
|
@@ -87,6 +88,55 @@ def display_results(video_url, video_file, description):
|
|
87 |
else:
|
88 |
return "No matching scene found", None
|
89 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
with gr.Blocks(theme=custom_theme, css=css) as demo:
|
91 |
with gr.Column():
|
92 |
gr.Markdown("# **Sickstadium AI**", elem_classes="centered-markdown", elem_id="sickstadium-title")
|
|
|
5 |
from gradio.themes.utils import colors, fonts, sizes
|
6 |
from typing import Iterable
|
7 |
|
8 |
+
|
9 |
class CustomTheme(Base):
|
10 |
def __init__(
|
11 |
self,
|
|
|
88 |
else:
|
89 |
return "No matching scene found", None
|
90 |
|
91 |
+
css = """
|
92 |
+
body {
|
93 |
+
background-color: #ffffff;
|
94 |
+
background-image: radial-gradient(#eb5726 1px, transparent 1px);
|
95 |
+
background-size: 10px 10px;
|
96 |
+
background-repeat: repeat;
|
97 |
+
background-attachment: fixed;
|
98 |
+
}
|
99 |
+
#video_url {
|
100 |
+
background-color: #ffffff;
|
101 |
+
color: #282828;
|
102 |
+
border: 2px solid #eb5726;
|
103 |
+
}
|
104 |
+
#description {
|
105 |
+
background-color: #ffffff;
|
106 |
+
color: #282828;
|
107 |
+
border: 2px solid #eb5726;
|
108 |
+
}
|
109 |
+
#submit_button {
|
110 |
+
background-color: #eb5726;
|
111 |
+
color: #ffffff;
|
112 |
+
border: 2px solid #ffffff;
|
113 |
+
}
|
114 |
+
#submit_button:hover {
|
115 |
+
background-color: #f5986e;
|
116 |
+
color: #ffffff;
|
117 |
+
border: 2px solid #ffffff;
|
118 |
+
}
|
119 |
+
label[for="video_url"] {
|
120 |
+
color: #eb5726 !important;
|
121 |
+
}
|
122 |
+
label[for="description"] {
|
123 |
+
color: #eb5726 !important;
|
124 |
+
}
|
125 |
+
h3 {
|
126 |
+
color: #eb5726;
|
127 |
+
}
|
128 |
+
.centered-markdown {
|
129 |
+
text-align: center;
|
130 |
+
background-color: #ffffff;
|
131 |
+
padding: 10px;
|
132 |
+
}
|
133 |
+
#sickstadium-title {
|
134 |
+
font-size: 3em !important;
|
135 |
+
font-weight: bold;
|
136 |
+
text-transform: uppercase;
|
137 |
+
}
|
138 |
+
"""
|
139 |
+
|
140 |
with gr.Blocks(theme=custom_theme, css=css) as demo:
|
141 |
with gr.Column():
|
142 |
gr.Markdown("# **Sickstadium AI**", elem_classes="centered-markdown", elem_id="sickstadium-title")
|