Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -90,7 +90,7 @@ def generate_image(
|
|
90 |
|
91 |
if prompt['files']:
|
92 |
#images = Image.open(prompt['files'][-1]).convert('RGB')
|
93 |
-
init_image = load_image(prompt['files'][-1]).resize((
|
94 |
else:
|
95 |
init_image = None
|
96 |
generator = torch.Generator().manual_seed(seed)
|
@@ -137,7 +137,7 @@ examples = [
|
|
137 |
|
138 |
with gr.Blocks(css=CSS, js=JS, theme="soft") as demo:
|
139 |
gr.HTML("<h1><center>SD3M🦄</center></h1>")
|
140 |
-
gr.HTML("<p><center><a href='https://huggingface.co/stabilityai/stable-diffusion-3-medium'>sd3m</a> text/img-to-image generation<br>img2img
|
141 |
with gr.Group():
|
142 |
with gr.Row():
|
143 |
prompt = gr.MultimodalTextbox(label='Enter Your Prompt (Multi-Languages)', interactive=True, placeholder="Enter prompt,you can upload image.", file_types=['image'], scale=6)
|
|
|
90 |
|
91 |
if prompt['files']:
|
92 |
#images = Image.open(prompt['files'][-1]).convert('RGB')
|
93 |
+
init_image = load_image(prompt['files'][-1]).resize((1024, 1024))
|
94 |
else:
|
95 |
init_image = None
|
96 |
generator = torch.Generator().manual_seed(seed)
|
|
|
137 |
|
138 |
with gr.Blocks(css=CSS, js=JS, theme="soft") as demo:
|
139 |
gr.HTML("<h1><center>SD3M🦄</center></h1>")
|
140 |
+
gr.HTML("<p><center><a href='https://huggingface.co/stabilityai/stable-diffusion-3-medium'>sd3m</a> text/img-to-image generation<br>img2img keep 1024*1024</center></p>")
|
141 |
with gr.Group():
|
142 |
with gr.Row():
|
143 |
prompt = gr.MultimodalTextbox(label='Enter Your Prompt (Multi-Languages)', interactive=True, placeholder="Enter prompt,you can upload image.", file_types=['image'], scale=6)
|