haepada commited on
Commit
1f57d57
·
verified ·
1 Parent(s): 2aa50fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +32 -19
app.py CHANGED
@@ -603,15 +603,10 @@ def create_interface():
603
  display: block !important;
604
  }
605
  .container { padding: 10px !important; }
606
- .gradio-button { width: 100% !important; }
607
- .gradio-textbox { width: 100% !important; }
608
- .gradio-audio { width: 100% !important; }
609
- .gradio-image { width: 100% !important; }
610
- #audio-recorder { width: 100% !important; }
611
- #result-image { width: 100% !important; }
612
- .gradio-dataframe {
613
- overflow-x: auto !important;
614
- max-width: 100% !important;
615
  }
616
  }
617
 
@@ -620,38 +615,56 @@ def create_interface():
620
  #logo-container {
621
  padding: 20px 0;
622
  width: 100%;
 
 
623
  }
624
  #logo-image {
625
  content: url('/static/DIGITAL_GUTPAN_LOGO_w.png');
626
  width: 100%;
627
  height: auto;
628
- max-width: 600px;
629
  margin: 0 auto;
630
  display: block;
631
  }
632
  }
633
 
634
  /* 공통 스타일 */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
635
  .gradio-button {
636
  transition: all 0.3s ease;
637
  }
638
  .gradio-button:active {
639
  transform: scale(0.98);
640
  }
641
- #logo-container {
642
- background: transparent !important;
643
- text-align: center;
644
- }
645
  """
646
 
647
  with gr.Blocks(theme=gr.themes.Soft(), css=css) as app:
648
  state = gr.State(value=initial_state)
649
 
650
- with gr.Row(elem_id="logo-container"):
651
- gr.Image(value="/static/DIGITAL_GUTPAN_LOGO_w.png",
652
- show_label=False,
653
- interactive=False,
654
- elem_id="logo-image")
 
 
 
 
655
 
656
  gr.Markdown("""
657
  1. 입장 → 2. 청신 → 3. 기원 → 4. 송신
 
603
  display: block !important;
604
  }
605
  .container { padding: 10px !important; }
606
+ .gradio-button {
607
+ width: 100% !important;
608
+ margin: 5px 0 !important;
609
+ min-height: 44px !important;
 
 
 
 
 
610
  }
611
  }
612
 
 
615
  #logo-container {
616
  padding: 20px 0;
617
  width: 100%;
618
+ max-width: 800px;
619
+ margin: 0 auto;
620
  }
621
  #logo-image {
622
  content: url('/static/DIGITAL_GUTPAN_LOGO_w.png');
623
  width: 100%;
624
  height: auto;
625
+ max-width: 800px;
626
  margin: 0 auto;
627
  display: block;
628
  }
629
  }
630
 
631
  /* 공통 스타일 */
632
+ #logo-container {
633
+ background: transparent !important;
634
+ text-align: center;
635
+ margin-bottom: 20px;
636
+ }
637
+
638
+ #logo-image img {
639
+ width: 100% !important;
640
+ height: auto !important;
641
+ object-fit: contain !important;
642
+ }
643
+
644
+ .gradio-container {
645
+ margin: 0 auto !important;
646
+ }
647
+
648
  .gradio-button {
649
  transition: all 0.3s ease;
650
  }
651
  .gradio-button:active {
652
  transform: scale(0.98);
653
  }
 
 
 
 
654
  """
655
 
656
  with gr.Blocks(theme=gr.themes.Soft(), css=css) as app:
657
  state = gr.State(value=initial_state)
658
 
659
+ with gr.Box(elem_id="logo-container"):
660
+ gr.Image(
661
+ value="/static/DIGITAL_GUTPAN_LOGO_w.png",
662
+ show_label=False,
663
+ interactive=False,
664
+ elem_id="logo-image",
665
+ scale=1, # 스케일 값 추가
666
+ width="100%" # 너비 100% 설정
667
+ )
668
 
669
  gr.Markdown("""
670
  1. 입장 → 2. 청신 → 3. 기원 → 4. 송신