ginipick commited on
Commit
2ae7725
·
verified ·
1 Parent(s): 22f0ac1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +30 -0
app.py CHANGED
@@ -422,12 +422,42 @@ def optimize_model_selection(lyrics, genre):
422
 
423
  return model_path, model_config[model_path], params
424
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
425
  def main():
426
  with gr.Blocks(theme=gr.themes.Soft(
427
  primary_hue="indigo",
428
  secondary_hue="purple",
429
  neutral_hue="slate",
430
  font=["Arial", "sans-serif"]
 
431
  )) as demo:
432
  with gr.Column(elem_id="main-container"):
433
  # 헤더 섹션
 
422
 
423
  return model_path, model_config[model_path], params
424
 
425
+ css = """
426
+ #main-container {
427
+ max-width: 1200px;
428
+ margin: auto;
429
+ padding: 20px;
430
+ }
431
+ #header {
432
+ text-align: center;
433
+ margin-bottom: 30px;
434
+ }
435
+ #genre-input, #lyrics-input {
436
+ border-radius: 8px;
437
+ }
438
+ #generate-btn {
439
+ margin-top: 20px;
440
+ min-height: 45px;
441
+ }
442
+ .label {
443
+ font-weight: bold;
444
+ }
445
+ .example-container {
446
+ background: #f8f9fa;
447
+ padding: 15px;
448
+ border-radius: 8px;
449
+ margin: 10px 0;
450
+ }
451
+ """
452
+
453
+
454
  def main():
455
  with gr.Blocks(theme=gr.themes.Soft(
456
  primary_hue="indigo",
457
  secondary_hue="purple",
458
  neutral_hue="slate",
459
  font=["Arial", "sans-serif"]
460
+ ), css=css) as demo:
461
  )) as demo:
462
  with gr.Column(elem_id="main-container"):
463
  # 헤더 섹션