Ziqi commited on
Commit
b504a73
1 Parent(s): 175ddc1
Files changed (1) hide show
  1. app.py +13 -11
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
- inputs=[
154
- model_id,
155
- prompt,
156
- num_samples,
157
- guidance_scale,
158
- ddim_steps,
159
- ],
160
- outputs=result,
161
- queue=False)
 
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
- outputs=result,
171
- queue=False)
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