openfree commited on
Commit
5b072bc
·
verified ·
1 Parent(s): 9b038f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -8
app.py CHANGED
@@ -675,7 +675,7 @@ input:focus, textarea:focus {
675
  '''
676
 
677
 
678
- with gr.Blocks(css=css, delete_cache=(60, 3600)) as app:
679
  loras_state = gr.State(loras)
680
  selected_indices = gr.State([])
681
 
@@ -687,13 +687,13 @@ with gr.Blocks(css=css, delete_cache=(60, 3600)) as app:
687
  """
688
  )
689
 
690
- # Gallery 컴포넌트 수정
691
- with gr.Row(theme=custom_theme, elem_id="lora_gallery", equal_height=True):
692
  gallery = gr.Gallery(
693
  value=[(item["image"], item["title"]) for item in loras],
694
  label="LoRA Explorer Gallery",
695
  columns=6,
696
- rows=None, # 자동으로 행 수 조정
697
  elem_id="gallery",
698
  height=800,
699
  object_fit="cover",
@@ -702,10 +702,8 @@ with gr.Blocks(css=css, delete_cache=(60, 3600)) as app:
702
  show_share_button=False,
703
  container=True,
704
  scale=1,
705
- min_width=1200 # 최소 너비 설정
706
- )
707
-
708
-
709
 
710
  with gr.Tab(label="Generate"):
711
  # Prompt and Generate Button
 
675
  '''
676
 
677
 
678
+ with gr.Blocks(theme=custom_theme, css=css, delete_cache=(60, 3600)) as app:
679
  loras_state = gr.State(loras)
680
  selected_indices = gr.State([])
681
 
 
687
  """
688
  )
689
 
690
+ # Row에서 theme 매개변수 제거
691
+ with gr.Row(elem_id="lora_gallery", equal_height=True):
692
  gallery = gr.Gallery(
693
  value=[(item["image"], item["title"]) for item in loras],
694
  label="LoRA Explorer Gallery",
695
  columns=6,
696
+ rows=None,
697
  elem_id="gallery",
698
  height=800,
699
  object_fit="cover",
 
702
  show_share_button=False,
703
  container=True,
704
  scale=1,
705
+ min_width=1200
706
+ )
 
 
707
 
708
  with gr.Tab(label="Generate"):
709
  # Prompt and Generate Button