Spaces:
Sleeping
Sleeping
update
Browse files
app.py
CHANGED
@@ -150,15 +150,16 @@ def create_inference_demo(func: inference_fn) -> gr.Blocks:
|
|
150 |
# inputs=None,
|
151 |
# outputs=weight_name)
|
152 |
prompt.submit(fn=func,
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
|
|
162 |
run_button.click(fn=func,
|
163 |
inputs=[
|
164 |
model_id,
|
@@ -166,9 +167,10 @@ def create_inference_demo(func: inference_fn) -> gr.Blocks:
|
|
166 |
num_samples,
|
167 |
guidance_scale,
|
168 |
ddim_steps,
|
|
|
169 |
],
|
170 |
-
|
171 |
-
|
172 |
return demo
|
173 |
|
174 |
|
|
|
150 |
# inputs=None,
|
151 |
# outputs=weight_name)
|
152 |
prompt.submit(fn=func,
|
153 |
+
inputs=[
|
154 |
+
model_id,
|
155 |
+
prompt,
|
156 |
+
num_samples,
|
157 |
+
guidance_scale,
|
158 |
+
ddim_steps,
|
159 |
+
],
|
160 |
+
outputs=result,
|
161 |
+
queue=False)
|
162 |
+
|
163 |
run_button.click(fn=func,
|
164 |
inputs=[
|
165 |
model_id,
|
|
|
167 |
num_samples,
|
168 |
guidance_scale,
|
169 |
ddim_steps,
|
170 |
+
|
171 |
],
|
172 |
+
outputs=result,
|
173 |
+
queue=False)
|
174 |
return demo
|
175 |
|
176 |
|