Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1619,7 +1619,7 @@ if __name__ == "__main__":
|
|
1619 |
|
1620 |
# GRADIO MODE
|
1621 |
|
1622 |
-
def infer(prompt):
|
1623 |
set_seed(args.seed)
|
1624 |
width,height = list(map(int, args.resolution.split(',')))
|
1625 |
pipe = AccDiffusionSDXLPipeline.from_pretrained(args.model_ckpt, torch_dtype=torch.float16).to("cuda")
|
@@ -1672,8 +1672,8 @@ if __name__ == "__main__":
|
|
1672 |
}
|
1673 |
"""
|
1674 |
with gr.Blocks(css=css) as demo:
|
1675 |
-
with gr.Column():
|
1676 |
-
gr.Markdown("# AccDiffusion")
|
1677 |
prompt = gr.Textbox(label="Prompt")
|
1678 |
submit_btn = gr.Button("Submit")
|
1679 |
output_images = gr.Gallery(format="png")
|
|
|
1619 |
|
1620 |
# GRADIO MODE
|
1621 |
|
1622 |
+
def infer(prompt, progress=gr.Progress()):
|
1623 |
set_seed(args.seed)
|
1624 |
width,height = list(map(int, args.resolution.split(',')))
|
1625 |
pipe = AccDiffusionSDXLPipeline.from_pretrained(args.model_ckpt, torch_dtype=torch.float16).to("cuda")
|
|
|
1672 |
}
|
1673 |
"""
|
1674 |
with gr.Blocks(css=css) as demo:
|
1675 |
+
with gr.Column(elem_id="col-container"):
|
1676 |
+
gr.Markdown("# AccDiffusion: An Accurate Method for Higher-Resolution Image Generation")
|
1677 |
prompt = gr.Textbox(label="Prompt")
|
1678 |
submit_btn = gr.Button("Submit")
|
1679 |
output_images = gr.Gallery(format="png")
|