DazDin commited on
Commit
5557a04
·
verified ·
1 Parent(s): e8252c7
Files changed (1) hide show
  1. app.py +1 -152
app.py CHANGED
@@ -63,158 +63,7 @@ def make_me():
63
  with gr.Row():
64
  gr.HTML("")
65
 
66
- custom_css = """
67
- :root {
68
- --body-background-fill: #2d3d4f;
69
- }
70
- body {
71
- background-color: var(--body-background-fill) !important;
72
- color: #2d3d4f;
73
- margin: 0;
74
- padding: 0;
75
- font-family: Arial, sans-serif;
76
- height: 100vh;
77
- overflow-y: auto;
78
- }
79
- .gradio-container {
80
- background-color: var(--body-background-fill) !important;
81
- color: #c5c6c7;
82
- padding: 20px;
83
- border-radius: 8px;
84
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
85
- width: 100%;
86
- max-width: 1200px;
87
- margin: 20px auto;
88
- display: block;
89
- min-height: 100vh;
90
- }
91
- .app_title {
92
- background-color: var(--body-background-fill) !important;
93
- color: #c5c6c7;
94
- padding: 10px 20px;
95
- border-bottom: 1px solid #3b4252;
96
- text-align: center;
97
- font-size: 24px;
98
- font-weight: bold;
99
- width: 100%;
100
- box-sizing: border-box;
101
- margin-bottom: 20px;
102
- }
103
- .custom_textbox {
104
- background-color: var(--body-background-fill) !important;
105
- border: 1px solid #3b4252;
106
- color: #7f8184;
107
- padding: 10px;
108
- border-radius: 4px;
109
- margin-bottom: 10px;
110
- width: 100%;
111
- box-sizing: border-box;
112
- }
113
- .custom_gen_button {
114
- background-color: #8b38ff;
115
- border: 1px solid #66778f;
116
- color: blue;
117
- padding: 15px 32px;
118
- text-align: center;
119
- text-decoration: none;
120
- display: inline-block;
121
- font-size: 16px;
122
- margin: 4px 2px;
123
- cursor: pointer;
124
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
125
- transition: transform 0.2s, box-shadow 0.2s;
126
- border-radius: 4px;
127
- }
128
- .custom_gen_button:hover {
129
- transform: translateY(-2px);
130
- box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
131
- }
132
- .custom_stop_button {
133
- background-color: #6200ea;
134
- border: 1px solid #ffffff;
135
- color: blue;
136
- padding: 15px 32px;
137
- text-align: center;
138
- text-decoration: none;
139
- display: inline-block;
140
- font-size: 16px;
141
- margin: 4px 2px;
142
- cursor: pointer;
143
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
144
- transition: transform 0.2s, box-shadow 0.2s;
145
- border-radius: 4px;
146
- }
147
- .custom_stop_button:hover {
148
- transform: translateY(-2px);
149
- box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
150
- }
151
- .custom_image {
152
- border: 1px solid #3b4252;
153
- background-color: var(--body-background-fill) !important;
154
- border-radius: 4px;
155
- margin: 10px;
156
- max-width: 100%;
157
- box-sizing: border-box;
158
- }
159
- .custom_accordion {
160
- background-color: var(--body-background-fill) !important;
161
- color: #7f8184;
162
- border: 1px solid #3b4252;
163
- border-radius: 4px;
164
- margin-top: 20px;
165
- width: 100%;
166
- box-sizing: border-box;
167
- transition: margin 0.2s ease;
168
- }
169
- .custom_accordion .gr-accordion-header {
170
- background-color: var(--body-background-fill) !important;
171
- color: #7f8184;
172
- padding: 10px 20px;
173
- border-bottom: 1px solid #5b6270;
174
- cursor: pointer;
175
- font-size: 18px;
176
- font-weight: bold;
177
- height: 40px;
178
- display: flex;
179
- align-items: center;
180
- }
181
- .custom_accordion .gr-accordion-header:hover {
182
- background-color: var(--body-background-fill) !important;
183
- }
184
- .custom_accordion .gr-accordion-content {
185
- padding: 10px 20px;
186
- background-color: var(--body-background-fill) !important;
187
- border-top: 1px solid #5b6270;
188
- max-height: 0;
189
- overflow: hidden;
190
- transition: max-height 0.2s ease;
191
- }
192
- .custom_accordion .gr-accordion-content.open {
193
- max-height: 500px;
194
- }
195
- .custom_checkbox_group {
196
- background-color: var(--body-background-fill) !important;
197
- border: 1px solid #3b4252;
198
- color: #7f8184;
199
- border-radius: 4px;
200
- padding: 10px;
201
- width: 100%;
202
- box-sizing: border-box;
203
- }
204
- @media (max-width: 768px) {
205
- .gradio-container {
206
- width: 100%;
207
- margin: 0;
208
- padding: 10px;
209
- }
210
- .custom_textbox, .custom_image, .custom_checkbox_group {
211
- width: 100%;
212
- box-sizing: border-box;
213
- }
214
- }
215
- """
216
-
217
- with gr.Blocks(css=custom_css) as demo:
218
  make_me()
219
 
220
  demo.queue(concurrency_count=100)
 
63
  with gr.Row():
64
  gr.HTML("")
65
 
66
+ with gr.Blocks(theme="DazDin/Go_Theme") as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  make_me()
68
 
69
  demo.queue(concurrency_count=100)