openfree commited on
Commit
219c219
1 Parent(s): dbf0ffd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +43 -17
app.py CHANGED
@@ -742,6 +742,29 @@ input:focus, textarea:focus {
742
  max-width: 90% !important;
743
  margin: 0 auto !important;
744
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
745
  '''
746
 
747
  with gr.Blocks(theme=custom_theme, css=css, delete_cache=(60, 3600)) as app:
@@ -821,23 +844,26 @@ with gr.Tab(label="Generate"):
821
  with gr.Row():
822
  remove_button_3 = gr.Button("Remove", size="sm")
823
 
824
- # Result and Progress Area (10% 축소)
825
- with gr.Column():
826
- progress_bar = gr.Markdown(elem_id="progress", visible=False)
827
- result = gr.Image(
828
- label="Generated Image",
829
- interactive=False,
830
- width="90%", # 너비를 90%로 설정하여 10% 축소
831
- container=True
832
- )
833
- with gr.Accordion("History", open=False):
834
- history_gallery = gr.Gallery(
835
- label="History",
836
- columns=6,
837
- object_fit="contain",
838
- interactive=False,
839
- width="90%" # 너비를 90%로 설정하여 10% 축소
840
- )
 
 
 
841
 
842
  # Advanced Settings
843
  with gr.Row():
 
742
  max-width: 90% !important;
743
  margin: 0 auto !important;
744
  }
745
+
746
+ /* 결과 이미지와 히스토리 갤러리 크기 조절 */
747
+ .generated-image {
748
+ width: 90% !important;
749
+ margin: 0 auto !important;
750
+ }
751
+
752
+ .history-gallery {
753
+ width: 90% !important;
754
+ margin: 0 auto !important;
755
+ }
756
+
757
+ /* 결과 이미지 컨테이너 스타일링 */
758
+ .generated-image > div {
759
+ width: 90% !important;
760
+ margin: 0 auto !important;
761
+ }
762
+
763
+ /* 히스토리 갤러리 컨테이너 스타일링 */
764
+ .history-gallery > div {
765
+ width: 90% !important;
766
+ margin: 0 auto !important;
767
+ }
768
  '''
769
 
770
  with gr.Blocks(theme=custom_theme, css=css, delete_cache=(60, 3600)) as app:
 
844
  with gr.Row():
845
  remove_button_3 = gr.Button("Remove", size="sm")
846
 
847
+
848
+ # Result and Progress Area (10% 축소)
849
+ with gr.Column():
850
+ progress_bar = gr.Markdown(elem_id="progress", visible=False)
851
+ result = gr.Image(
852
+ label="Generated Image",
853
+ interactive=False,
854
+ elem_classes=["generated-image"],
855
+ container=True
856
+ )
857
+ with gr.Accordion("History", open=False):
858
+ history_gallery = gr.Gallery(
859
+ label="History",
860
+ columns=6,
861
+ object_fit="contain",
862
+ interactive=False,
863
+ elem_classes=["history-gallery"]
864
+ )
865
+
866
+
867
 
868
  # Advanced Settings
869
  with gr.Row():