haepada commited on
Commit
6ee33cd
·
verified ·
1 Parent(s): ea9f6ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -656,9 +656,13 @@ def create_interface():
656
  """
657
 
658
  with gr.Blocks(theme=gr.themes.Soft(), css=css) as app:
659
- state = gr.State(value=initial_state)
660
- with gr.Row(elem_id="logo-container"):
661
- gr.Image(value="static/DIGITAL_GUTPAN_LOGO.png", show_label=False, interactive=False, elem_id="logo-image")
 
 
 
 
662
 
663
  with gr.Tabs(selected=0) as tabs:
664
  # 입장 탭 (축원 포함)
 
656
  """
657
 
658
  with gr.Blocks(theme=gr.themes.Soft(), css=css) as app:
659
+ state = gr.State(value=initial_state)
660
+
661
+ # 화면 크기에 따라 로고 이미지 설정
662
+ logo_image_path = "/static/DIGITAL_GUTPAN_LOGO_m.png" if request.user_agent.platform == 'mobile' else "/static/DIGITAL_GUTPAN_LOGO_w.png"
663
+
664
+ with gr.Row(elem_id="logo-container"):
665
+ gr.Image(value=logo_image_path, show_label=False, interactive=False, elem_id="logo-image")
666
 
667
  with gr.Tabs(selected=0) as tabs:
668
  # 입장 탭 (축원 포함)