Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -46,9 +46,7 @@ def get_seed(seed):
|
|
46 |
def generate(input=DEFAULT_INPUT, negative_input=DEFAULT_NEGATIVE_INPUT, height=DEFAULT_HEIGHT, width=DEFAULT_WIDTH, steps=1, guidance=0, seed=None):
|
47 |
|
48 |
print(input, negative_input, height, width, steps, guidance, seed)
|
49 |
-
|
50 |
model.to(DEVICE)
|
51 |
-
seed = int(randomize_seed_fn(seed, randomize_seed))
|
52 |
|
53 |
parameters = {
|
54 |
"prompt": prompt,
|
@@ -73,8 +71,8 @@ with gr.Blocks() as main:
|
|
73 |
negative_input = gr.Textbox(lines=1, value=DEFAULT_NEGATIVE_INPUT, label="Input Negative")
|
74 |
height = gr.Slider(minimum=1, maximum=2160, step=1, value=DEFAULT_HEIGHT, label="Height")
|
75 |
width = gr.Slider(minimum=1, maximum=2160, step=1, value=DEFAULT_WIDTH, label="Width")
|
76 |
-
steps = gr.Slider(minimum=0, maximum=100, step=1, value=
|
77 |
-
guidance = gr.Slider(minimum=0, maximum=100, step=0.001, value=
|
78 |
seed = gr.Textbox(lines=1, value="", label="Seed (Blank for random)")
|
79 |
submit = gr.Button("▶")
|
80 |
|
|
|
46 |
def generate(input=DEFAULT_INPUT, negative_input=DEFAULT_NEGATIVE_INPUT, height=DEFAULT_HEIGHT, width=DEFAULT_WIDTH, steps=1, guidance=0, seed=None):
|
47 |
|
48 |
print(input, negative_input, height, width, steps, guidance, seed)
|
|
|
49 |
model.to(DEVICE)
|
|
|
50 |
|
51 |
parameters = {
|
52 |
"prompt": prompt,
|
|
|
71 |
negative_input = gr.Textbox(lines=1, value=DEFAULT_NEGATIVE_INPUT, label="Input Negative")
|
72 |
height = gr.Slider(minimum=1, maximum=2160, step=1, value=DEFAULT_HEIGHT, label="Height")
|
73 |
width = gr.Slider(minimum=1, maximum=2160, step=1, value=DEFAULT_WIDTH, label="Width")
|
74 |
+
steps = gr.Slider(minimum=0, maximum=100, step=1, value=8, label="Steps")
|
75 |
+
guidance = gr.Slider(minimum=0, maximum=100, step=0.001, value=3, label = "Guidance")
|
76 |
seed = gr.Textbox(lines=1, value="", label="Seed (Blank for random)")
|
77 |
submit = gr.Button("▶")
|
78 |
|