Spaces:
Runtime error
Runtime error
change default model
Browse files
app.css
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.contain {
|
2 |
+
display: flex;
|
3 |
+
flex-direction: column;
|
4 |
+
}
|
5 |
+
|
6 |
+
#component-0 {
|
7 |
+
height: 100%;
|
8 |
+
}
|
9 |
+
|
10 |
+
#gallery {
|
11 |
+
flex-grow: 1;
|
12 |
+
}
|
app.py
CHANGED
@@ -773,11 +773,9 @@ class GuiSD:
|
|
773 |
|
774 |
sd_gen = GuiSD()
|
775 |
|
776 |
-
|
777 |
-
|
778 |
-
|
779 |
-
#gallery { flex-grow: 1; }
|
780 |
-
"""
|
781 |
sdxl_task = [k for k, v in task_stablepy.items() if v in SDXL_TASKS]
|
782 |
sd_task = [k for k, v in task_stablepy.items() if v in SD15_TASKS]
|
783 |
|
@@ -797,7 +795,7 @@ def update_task_options(model_name, task_name):
|
|
797 |
return gr.update(value=task_name, choices=task_model_list)
|
798 |
|
799 |
|
800 |
-
with gr.Blocks(
|
801 |
gr.Markdown("# 🧩 (Ivan) DiffuseCraft")
|
802 |
gr.Markdown(
|
803 |
f"""
|
|
|
773 |
|
774 |
sd_gen = GuiSD()
|
775 |
|
776 |
+
with open("app.css", "r") as f:
|
777 |
+
CSS: str = f.read()
|
778 |
+
|
|
|
|
|
779 |
sdxl_task = [k for k, v in task_stablepy.items() if v in SDXL_TASKS]
|
780 |
sd_task = [k for k, v in task_stablepy.items() if v in SD15_TASKS]
|
781 |
|
|
|
795 |
return gr.update(value=task_name, choices=task_model_list)
|
796 |
|
797 |
|
798 |
+
with gr.Blocks(css=CSS) as app:
|
799 |
gr.Markdown("# 🧩 (Ivan) DiffuseCraft")
|
800 |
gr.Markdown(
|
801 |
f"""
|