slslslrhfem commited on
Commit
c278e2f
ยท
1 Parent(s): 8d990d5

change design

Browse files
Files changed (1) hide show
  1. app.py +27 -30
app.py CHANGED
@@ -56,7 +56,7 @@ def download_data_from_hub():
56
  (1005_e_4 file is handled by Git LFS in the main repo)
57
  """
58
  base_dir = Path(".")
59
- data_repo_id = "mippia/music-data"
60
 
61
  folders_to_check = ["covers80", "ml_models"]
62
  downloaded_folders = {}
@@ -318,72 +318,69 @@ def process_audio_for_matching(audio_file):
318
  # ๊น”๋”ํ•œ CSS ์Šคํƒ€์ผ
319
  custom_css = """
320
  .gradio-container {
321
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
322
  min-height: 100vh;
323
  padding: 20px;
324
  }
325
  .main-container {
326
  background: #ffffff !important;
327
- border-radius: 20px !important;
328
- box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
329
  margin: 0 auto !important;
330
  padding: 40px !important;
331
  max-width: 900px;
 
332
  }
333
  h1 {
334
  text-align: center !important;
335
- font-size: 2.8em !important;
336
- font-weight: 800 !important;
337
  margin-bottom: 15px !important;
338
- background: linear-gradient(135deg, #667eea, #764ba2) !important;
339
- -webkit-background-clip: text !important;
340
- -webkit-text-fill-color: transparent !important;
341
- background-clip: text !important;
342
  }
343
  .gradio-markdown p {
344
  text-align: center !important;
345
  font-size: 1.1em !important;
346
- color: #555 !important;
347
  margin-bottom: 25px !important;
348
  line-height: 1.6;
349
  }
350
  .upload-container {
351
- background: #f8f9fa !important;
352
- border-radius: 15px !important;
353
  padding: 25px !important;
354
- border: 2px dashed #dee2e6 !important;
355
  margin-bottom: 25px !important;
356
  transition: all 0.3s ease !important;
357
  }
358
  .upload-container:hover {
359
- border-color: #667eea !important;
360
- background: #f1f3ff !important;
361
  }
362
  .output-container {
363
  background: #ffffff !important;
364
- border-radius: 15px !important;
365
  padding: 20px !important;
366
- border: 1px solid #e1e5e9 !important;
367
  min-height: 200px !important;
368
- box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
369
  }
370
  .gr-button {
371
- background: linear-gradient(135deg, #667eea, #764ba2) !important;
372
- color: #fff !important;
373
  border: none !important;
374
- border-radius: 25px !important;
375
- padding: 12px 30px !important;
376
- font-weight: 600 !important;
377
- font-size: 1.1em !important;
378
- transition: all 0.3s ease !important;
379
- box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
380
  }
381
  .gr-button:hover {
382
- transform: translateY(-2px) !important;
383
- box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6) !important;
 
384
  }
385
  @media (max-width: 768px) {
386
- h1 { font-size: 2.2em !important; }
387
  .main-container { margin: 10px !important; padding: 25px !important; }
388
  .upload-container { padding: 20px !important; }
389
  }
 
56
  (1005_e_4 file is handled by Git LFS in the main repo)
57
  """
58
  base_dir = Path(".")
59
+ data_repo_id = "nininigold/music-data"
60
 
61
  folders_to_check = ["covers80", "ml_models"]
62
  downloaded_folders = {}
 
318
  # ๊น”๋”ํ•œ CSS ์Šคํƒ€์ผ
319
  custom_css = """
320
  .gradio-container {
321
+ background: #f8fafc !important;
322
  min-height: 100vh;
323
  padding: 20px;
324
  }
325
  .main-container {
326
  background: #ffffff !important;
327
+ border-radius: 16px !important;
328
+ box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
329
  margin: 0 auto !important;
330
  padding: 40px !important;
331
  max-width: 900px;
332
+ border: 1px solid #e2e8f0 !important;
333
  }
334
  h1 {
335
  text-align: center !important;
336
+ font-size: 2.5em !important;
337
+ font-weight: 700 !important;
338
  margin-bottom: 15px !important;
339
+ color: #1e293b !important;
 
 
 
340
  }
341
  .gradio-markdown p {
342
  text-align: center !important;
343
  font-size: 1.1em !important;
344
+ color: #64748b !important;
345
  margin-bottom: 25px !important;
346
  line-height: 1.6;
347
  }
348
  .upload-container {
349
+ background: #ffffff !important;
350
+ border-radius: 12px !important;
351
  padding: 25px !important;
352
+ border: 2px dashed #cbd5e1 !important;
353
  margin-bottom: 25px !important;
354
  transition: all 0.3s ease !important;
355
  }
356
  .upload-container:hover {
357
+ border-color: #3b82f6 !important;
358
+ background: #f8fafc !important;
359
  }
360
  .output-container {
361
  background: #ffffff !important;
362
+ border-radius: 12px !important;
363
  padding: 20px !important;
364
+ border: 1px solid #e2e8f0 !important;
365
  min-height: 200px !important;
 
366
  }
367
  .gr-button {
368
+ background: #3b82f6 !important;
369
+ color: #ffffff !important;
370
  border: none !important;
371
+ border-radius: 8px !important;
372
+ padding: 12px 24px !important;
373
+ font-weight: 500 !important;
374
+ font-size: 1em !important;
375
+ transition: all 0.2s ease !important;
 
376
  }
377
  .gr-button:hover {
378
+ background: #2563eb !important;
379
+ transform: translateY(-1px) !important;
380
+ box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25) !important;
381
  }
382
  @media (max-width: 768px) {
383
+ h1 { font-size: 2em !important; }
384
  .main-container { margin: 10px !important; padding: 25px !important; }
385
  .upload-container { padding: 20px !important; }
386
  }