Update app.py
Browse files
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 |
-
|
825 |
-
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
-
|
831 |
-
|
832 |
-
|
833 |
-
|
834 |
-
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
-
|
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():
|