Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -20,12 +20,12 @@ MAX_IMAGE_SIZE = 1024
|
|
20 |
|
21 |
# @spaces.GPU #[uncomment to use ZeroGPU]
|
22 |
def infer(
|
23 |
-
model_id=model_id_default,
|
24 |
prompt,
|
25 |
negative_prompt,
|
26 |
-
seed=42,
|
27 |
width,
|
28 |
height,
|
|
|
|
|
29 |
guidance_scale=7.0,
|
30 |
num_inference_steps=20,
|
31 |
progress=gr.Progress(track_tqdm=True),
|
@@ -135,14 +135,14 @@ with gr.Blocks(css=css) as demo:
|
|
135 |
triggers=[run_button.click, prompt.submit],
|
136 |
fn=infer,
|
137 |
inputs=[
|
138 |
-
model_id,
|
139 |
prompt,
|
140 |
negative_prompt,
|
141 |
-
seed,
|
142 |
width,
|
143 |
height,
|
|
|
|
|
144 |
guidance_scale,
|
145 |
-
num_inference_steps,
|
146 |
],
|
147 |
outputs=[result],
|
148 |
)
|
|
|
20 |
|
21 |
# @spaces.GPU #[uncomment to use ZeroGPU]
|
22 |
def infer(
|
|
|
23 |
prompt,
|
24 |
negative_prompt,
|
|
|
25 |
width,
|
26 |
height,
|
27 |
+
model_id=model_id_default,
|
28 |
+
seed=42,
|
29 |
guidance_scale=7.0,
|
30 |
num_inference_steps=20,
|
31 |
progress=gr.Progress(track_tqdm=True),
|
|
|
135 |
triggers=[run_button.click, prompt.submit],
|
136 |
fn=infer,
|
137 |
inputs=[
|
|
|
138 |
prompt,
|
139 |
negative_prompt,
|
|
|
140 |
width,
|
141 |
height,
|
142 |
+
model_id,
|
143 |
+
seed,
|
144 |
guidance_scale,
|
145 |
+
num_inference_steps,
|
146 |
],
|
147 |
outputs=[result],
|
148 |
)
|