Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -70,10 +70,7 @@ def infer(
|
|
70 |
generator=generator,
|
71 |
).images[0]
|
72 |
|
73 |
-
|
74 |
-
image.save(filename)
|
75 |
-
|
76 |
-
return image, seed, filename
|
77 |
|
78 |
|
79 |
examples = ["murasame \(senren\), senren banka",]
|
@@ -100,7 +97,6 @@ with gr.Blocks() as img:
|
|
100 |
|
101 |
run_button = gr.Button("Run", scale=0, variant="primary")
|
102 |
|
103 |
-
file_output = gr.File(label="Download your image")
|
104 |
result = gr.Image(label="Result", show_label=False)
|
105 |
|
106 |
with gr.Accordion("Advanced Settings", open=False):
|
@@ -174,7 +170,7 @@ with gr.Blocks() as img:
|
|
174 |
guidance_scale,
|
175 |
num_inference_steps,
|
176 |
],
|
177 |
-
outputs=[result, seed
|
178 |
)
|
179 |
|
180 |
if __name__ == "__main__":
|
|
|
70 |
generator=generator,
|
71 |
).images[0]
|
72 |
|
73 |
+
return image, seed
|
|
|
|
|
|
|
74 |
|
75 |
|
76 |
examples = ["murasame \(senren\), senren banka",]
|
|
|
97 |
|
98 |
run_button = gr.Button("Run", scale=0, variant="primary")
|
99 |
|
|
|
100 |
result = gr.Image(label="Result", show_label=False)
|
101 |
|
102 |
with gr.Accordion("Advanced Settings", open=False):
|
|
|
170 |
guidance_scale,
|
171 |
num_inference_steps,
|
172 |
],
|
173 |
+
outputs=[result, seed],
|
174 |
)
|
175 |
|
176 |
if __name__ == "__main__":
|