NeoPy commited on
Commit
0c89274
·
verified ·
1 Parent(s): cbf1e45

The CSS so ass

Browse files
Files changed (1) hide show
  1. app.py +2 -162
app.py CHANGED
@@ -75,167 +75,7 @@ ROFORMER_MODELS = get_all_models()
75
 
76
  OUTPUT_FORMATS = ['wav', 'flac', 'mp3', 'ogg', 'opus', 'm4a', 'aiff', 'ac3']
77
 
78
- # CSS (orijinal CSS korundu)
79
- CSS = """
80
- body {
81
- background: linear-gradient(to bottom, rgba(45, 11, 11, 0.9), rgba(0, 0, 0, 0.8)), url('/content/logo.jpg') no-repeat center center fixed;
82
- background-size: cover;
83
- min-height: 100vh;
84
- margin: 0;
85
- padding: 1rem;
86
- font-family: 'Poppins', sans-serif;
87
- color: #C0C0C0;
88
- overflow-x: hidden;
89
- }
90
- .header-text {
91
- text-align: center;
92
- padding: 100px 20px 20px;
93
- color: #ff4040;
94
- font-size: 3rem;
95
- font-weight: 900;
96
- text-shadow: 0 0 10px rgba(255, 64, 64, 0.5);
97
- z-index: 1500;
98
- animation: text-glow 2s infinite;
99
- }
100
- .header-subtitle {
101
- text-align: center;
102
- color: #C0C0C0;
103
- font-size: 1.2rem;
104
- font-weight: 300;
105
- margin-top: -10px;
106
- text-shadow: 0 0 5px rgba(255, 64, 64, 0.3);
107
- }
108
- .gr-tab {
109
- background: rgba(128, 0, 0, 0.5) !important;
110
- border-radius: 12px 12px 0 0 !important;
111
- margin: 0 5px !important;
112
- color: #C0C0C0 !important;
113
- border: 1px solid #ff4040 !important;
114
- z-index: 1500;
115
- transition: background 0.3s ease, color 0.3s ease;
116
- padding: 10px 20px !important;
117
- font-size: 1.1rem !important;
118
- }
119
- button {
120
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
121
- background: #800000 !important;
122
- border: 1px solid #ff4040 !important;
123
- color: #C0C0C0 !important;
124
- border-radius: 8px !important;
125
- padding: 8px 16px !important;
126
- box-shadow: 0 2px 10px rgba(255, 64, 64, 0.3);
127
- }
128
- button:hover {
129
- transform: scale(1.05) !important;
130
- box-shadow: 0 10px 40px rgba(255, 64, 64, 0.7) !important;
131
- background: #ff4040 !important;
132
- }
133
- .compact-upload.horizontal {
134
- display: inline-flex !important;
135
- align-items: center !important;
136
- gap: 8px !important;
137
- max-width: 400px !important;
138
- height: 40px !important;
139
- padding: 0 12px !important;
140
- border: 1px solid #ff4040 !important;
141
- background: rgba(128, 0, 0, 0.5) !important;
142
- border-radius: 8px !important;
143
- }
144
- .compact-dropdown {
145
- padding: 8px 12px !important;
146
- border-radius: 8px !important;
147
- border: 2px solid #ff6b6b !important;
148
- background: rgba(46, 26, 71, 0.7) !important;
149
- color: #e0e0e0 !important;
150
- width: 100%;
151
- font-size: 1rem !important;
152
- transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
153
- position: relative;
154
- z-index: 100;
155
- }
156
- .compact-dropdown:hover {
157
- border-color: #ff8787 !important;
158
- box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4) !important;
159
- }
160
- .compact-dropdown select, .compact-dropdown .gr-dropdown {
161
- background: transparent !important;
162
- color: #e0e0e0 !important;
163
- border: none !important;
164
- width: 100% !important;
165
- padding: 8px !important;
166
- font-size: 1rem !important;
167
- appearance: none !important;
168
- -webkit-appearance: none !important;
169
- -moz-appearance: none !important;
170
- }
171
- .compact-dropdown .gr-dropdown-menu {
172
- background: rgba(46, 26, 71, 0.95) !important;
173
- border: 2px solid #ff6b6b !important;
174
- border-radius: 8px !important;
175
- color: #e0e0e0 !important;
176
- max-height: 300px !important;
177
- overflow-y: auto !important;
178
- z-index: 300 !important;
179
- width: 100% !important;
180
- opacity: 1 !important;
181
- visibility: visible !important;
182
- position: absolute !important;
183
- top: 100% !important;
184
- left: 0 !important;
185
- pointer-events: auto !important;
186
- }
187
- .compact-dropdown:hover .gr-dropdown-menu {
188
- display: block !important;
189
- }
190
- .compact-dropdown .gr-dropdown-menu option {
191
- padding: 8px !important;
192
- color: #e0e0e0 !important;
193
- background: transparent !important;
194
- }
195
- .compact-dropdown .gr-dropdown-menu option:hover {
196
- background: rgba(255, 107, 107, 0.3) !important;
197
- }
198
- #custom-progress {
199
- margin-top: 10px;
200
- padding: 10px;
201
- background: rgba(128, 0, 0, 0.3);
202
- border-radius: 8px;
203
- border: 1px solid #ff4040;
204
- }
205
- #progress-bar {
206
- height: 20px;
207
- background: linear-gradient(to right, #6e8efb, #ff4040);
208
- border-radius: 5px;
209
- transition: width 0.5s ease-in-out;
210
- max-width: 100% !important;
211
- }
212
- .gr-accordion {
213
- background: rgba(128, 0, 0, 0.5) !important;
214
- border-radius: 10px !important;
215
- border: 1px solid #ff4040 !important;
216
- }
217
- .footer {
218
- text-align: center;
219
- padding: 20px;
220
- color: #ff4040;
221
- font-size: 14px;
222
- margin-top: 40px;
223
- background: rgba(128, 0, 0, 0.3);
224
- border-top: 1px solid #ff4040;
225
- }
226
- #log-accordion {
227
- max-height: 400px;
228
- overflow-y: auto;
229
- background: rgba(0, 0, 0, 0.7) !important;
230
- padding: 10px;
231
- border-radius: 8px;
232
- }
233
- @keyframes text-glow {
234
- 0% { text-shadow: 0 0 5px rgba(192, 192, 192, 0); }
235
- 50% { text-shadow: 0 0 15px rgba(192, 192, 192, 1); }
236
- 100% { text-shadow: 0 0 5px rgba(192, 192, 192, 0); }
237
- }
238
- """
239
 
240
  def download_audio(url, cookie_file=None):
241
  """
@@ -946,7 +786,7 @@ def delete_custom_model_handler(name):
946
  return msg, custom_list, gr.update(choices=cats), gr.update(choices=cats)
947
 
948
  def create_interface():
949
- with gr.Blocks(title="🎵 SESA Fast Separation 🎵", css=CSS, elem_id="app-container") as app:
950
  gr.Markdown("<h1 class='header-text'>🎵 SESA Fast Separation 🎵</h1>")
951
  gr.Markdown("**Note**: If YouTube downloads fail, upload a valid cookies file or a local WAV/MP4/MOV file. [Cookie Instructions](https://github.com/yt-dlp/yt-dlp/wiki/Extractors#exporting-youtube-cookies)")
952
  gr.Markdown("**Tip**: For best results, use audio/video shorter than 15 minutes or fewer models (up to 6) to ensure smooth processing.")
 
75
 
76
  OUTPUT_FORMATS = ['wav', 'flac', 'mp3', 'ogg', 'opus', 'm4a', 'aiff', 'ac3']
77
 
78
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79
 
80
  def download_audio(url, cookie_file=None):
81
  """
 
786
  return msg, custom_list, gr.update(choices=cats), gr.update(choices=cats)
787
 
788
  def create_interface():
789
+ with gr.Blocks(title="🎵 SESA Fast Separation 🎵", theme="NeoPy/Soft", elem_id="app-container") as app:
790
  gr.Markdown("<h1 class='header-text'>🎵 SESA Fast Separation 🎵</h1>")
791
  gr.Markdown("**Note**: If YouTube downloads fail, upload a valid cookies file or a local WAV/MP4/MOV file. [Cookie Instructions](https://github.com/yt-dlp/yt-dlp/wiki/Extractors#exporting-youtube-cookies)")
792
  gr.Markdown("**Tip**: For best results, use audio/video shorter than 15 minutes or fewer models (up to 6) to ensure smooth processing.")