Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ def generate(prompt, option, progress=gr.Progress()):
|
|
50 |
def inference_callback(p, i, t, kwargs):
|
51 |
progress((i+1, step))
|
52 |
return kwargs
|
53 |
-
results = pipe(prompt, num_inference_steps=step, guidance_scale=0, callback_on_step_end=inference_callback, output_type="
|
54 |
|
55 |
# Safety check
|
56 |
feature_extractor_input = image_processor.postprocess(results.images, output_type="pil")
|
|
|
50 |
def inference_callback(p, i, t, kwargs):
|
51 |
progress((i+1, step))
|
52 |
return kwargs
|
53 |
+
results = pipe(prompt, num_inference_steps=step, guidance_scale=0, callback_on_step_end=inference_callback, output_type="pt")
|
54 |
|
55 |
# Safety check
|
56 |
feature_extractor_input = image_processor.postprocess(results.images, output_type="pil")
|