Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -60,7 +60,6 @@ def infer(
|
|
60 |
generator=generator,
|
61 |
use_resolution_binning=use_resolution_binning,
|
62 |
).images[0]
|
63 |
-
image.save("output_image.png")
|
64 |
return image, seed
|
65 |
|
66 |
examples = [
|
@@ -89,7 +88,7 @@ with gr.Blocks(css=css) as demo:
|
|
89 |
container=False,
|
90 |
)
|
91 |
run_button = gr.Button("生成", scale=0, variant="primary")
|
92 |
-
result = gr.Image(label="Result", show_label=False)
|
93 |
with gr.Accordion("高级选项", open=False):
|
94 |
with gr.Row():
|
95 |
use_negative_prompt = gr.Checkbox(label="使用反向词条", value=True)
|
|
|
60 |
generator=generator,
|
61 |
use_resolution_binning=use_resolution_binning,
|
62 |
).images[0]
|
|
|
63 |
return image, seed
|
64 |
|
65 |
examples = [
|
|
|
88 |
container=False,
|
89 |
)
|
90 |
run_button = gr.Button("生成", scale=0, variant="primary")
|
91 |
+
result = gr.Image(label="Result", show_label=False, format="png")
|
92 |
with gr.Accordion("高级选项", open=False):
|
93 |
with gr.Row():
|
94 |
use_negative_prompt = gr.Checkbox(label="使用反向词条", value=True)
|