Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -77,7 +77,7 @@ async def generate_image(
|
|
77 |
num_inference_steps=steps,
|
78 |
model=model,
|
79 |
)
|
80 |
-
|
81 |
|
82 |
async def gen(
|
83 |
prompt:str,
|
@@ -91,8 +91,8 @@ async def gen(
|
|
91 |
progress=gr.Progress(track_tqdm=True)
|
92 |
):
|
93 |
model = enable_lora(lora_in, lora_add)
|
94 |
-
image1, image2, seed = generate_image(prompt,model,width,height,scales,steps,seed)
|
95 |
-
|
96 |
|
97 |
|
98 |
|
|
|
77 |
num_inference_steps=steps,
|
78 |
model=model,
|
79 |
)
|
80 |
+
return image1, image2, seed
|
81 |
|
82 |
async def gen(
|
83 |
prompt:str,
|
|
|
91 |
progress=gr.Progress(track_tqdm=True)
|
92 |
):
|
93 |
model = enable_lora(lora_in, lora_add)
|
94 |
+
image1, image2, seed = await generate_image(prompt,model,width,height,scales,steps,seed)
|
95 |
+
return image1, image2, seed
|
96 |
|
97 |
|
98 |
|