vilarin commited on
Commit
1b85b80
1 Parent(s): 1df8ec3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -77,7 +77,7 @@ async def generate_image(
77
  num_inference_steps=steps,
78
  model=model,
79
  )
80
- yield image1, image2, seed
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
- yield image1, image2, seed
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