Spaces:
Running
on
Zero
Running
on
Zero
adamelliotfields
commited on
Fix config
Browse files
README.md
CHANGED
@@ -3,8 +3,8 @@
|
|
3 |
title: Diffusion Zero
|
4 |
short_description: Image generation studio on ZeroGPU
|
5 |
emoji: 🧨
|
6 |
-
colorFrom:
|
7 |
-
colorTo:
|
8 |
sdk: gradio
|
9 |
sdk_version: 4.39.0
|
10 |
python_version: 3.11.9
|
@@ -65,7 +65,6 @@ python cli.py 'an astronaut riding a horse on mars'
|
|
65 |
|
66 |
## TODO
|
67 |
|
68 |
-
- [ ] Styles
|
69 |
- [ ] Hires fix
|
70 |
- [ ] Support LoRA
|
71 |
- [ ] Metadata embed and display
|
|
|
3 |
title: Diffusion Zero
|
4 |
short_description: Image generation studio on ZeroGPU
|
5 |
emoji: 🧨
|
6 |
+
colorFrom: purple
|
7 |
+
colorTo: blue
|
8 |
sdk: gradio
|
9 |
sdk_version: 4.39.0
|
10 |
python_version: 3.11.9
|
|
|
65 |
|
66 |
## TODO
|
67 |
|
|
|
68 |
- [ ] Hires fix
|
69 |
- [ ] Support LoRA
|
70 |
- [ ] Metadata embed and display
|
app.py
CHANGED
@@ -83,8 +83,8 @@ with gr.Blocks(
|
|
83 |
with gr.TabItem("⚙️ Settings"):
|
84 |
with gr.Group():
|
85 |
negative_prompt = gr.Textbox(
|
86 |
-
label="Negative Prompt",
|
87 |
value=cfg.NEGATIVE_PROMPT,
|
|
|
88 |
placeholder="ugly, bad",
|
89 |
lines=2,
|
90 |
)
|
@@ -98,16 +98,16 @@ with gr.Blocks(
|
|
98 |
|
99 |
with gr.Row():
|
100 |
style = gr.Dropdown(
|
101 |
-
label="Style",
|
102 |
-
choices=["None"] + [f"{style['name']}" for style in styles],
|
103 |
value=cfg.STYLE,
|
|
|
104 |
scale=1,
|
|
|
105 |
)
|
106 |
scheduler = gr.Dropdown(
|
|
|
107 |
elem_id="scheduler",
|
108 |
label="Scheduler",
|
109 |
filterable=False,
|
110 |
-
value=cfg.SCHEDULER,
|
111 |
min_width=200,
|
112 |
scale=1,
|
113 |
choices=cfg.SCHEDULERS,
|
|
|
83 |
with gr.TabItem("⚙️ Settings"):
|
84 |
with gr.Group():
|
85 |
negative_prompt = gr.Textbox(
|
|
|
86 |
value=cfg.NEGATIVE_PROMPT,
|
87 |
+
label="Negative Prompt",
|
88 |
placeholder="ugly, bad",
|
89 |
lines=2,
|
90 |
)
|
|
|
98 |
|
99 |
with gr.Row():
|
100 |
style = gr.Dropdown(
|
|
|
|
|
101 |
value=cfg.STYLE,
|
102 |
+
label="Style",
|
103 |
scale=1,
|
104 |
+
choices=["None"] + [f"{style['name']}" for style in styles],
|
105 |
)
|
106 |
scheduler = gr.Dropdown(
|
107 |
+
value=cfg.SCHEDULER,
|
108 |
elem_id="scheduler",
|
109 |
label="Scheduler",
|
110 |
filterable=False,
|
|
|
111 |
min_width=200,
|
112 |
scale=1,
|
113 |
choices=cfg.SCHEDULERS,
|
config.py
CHANGED
@@ -35,9 +35,9 @@ SCHEDULERS = [
|
|
35 |
|
36 |
STYLE = "None"
|
37 |
|
38 |
-
WIDTH =
|
39 |
|
40 |
-
HEIGHT =
|
41 |
|
42 |
NUM_IMAGES = 4
|
43 |
|
|
|
35 |
|
36 |
STYLE = "None"
|
37 |
|
38 |
+
WIDTH = 448
|
39 |
|
40 |
+
HEIGHT = 576
|
41 |
|
42 |
NUM_IMAGES = 4
|
43 |
|