Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -236,7 +236,7 @@ def run_lora(prompt, image_input, image_strength, cfg_scale, steps, selected_ind
|
|
236 |
|
237 |
if image_input is not None:
|
238 |
final_image, file_path, base64_str = generate_image_to_image(prompt_mash, image_input, image_strength, steps, cfg_scale, width, height, lora_scale, seed)
|
239 |
-
|
240 |
else:
|
241 |
image_generator = generate_image(prompt_mash, steps, seed, cfg_scale, width, height, lora_scale, progress)
|
242 |
|
@@ -255,7 +255,7 @@ def run_lora(prompt, image_input, image_strength, cfg_scale, steps, selected_ind
|
|
255 |
with open(temp_file.name, "rb") as f:
|
256 |
img_base64 = base64.b64encode(f.read()).decode("utf-8")
|
257 |
|
258 |
-
|
259 |
|
260 |
css = '''
|
261 |
#gen_btn{height: 100%}
|
|
|
236 |
|
237 |
if image_input is not None:
|
238 |
final_image, file_path, base64_str = generate_image_to_image(prompt_mash, image_input, image_strength, steps, cfg_scale, width, height, lora_scale, seed)
|
239 |
+
return final_image, file_path, base64_str
|
240 |
else:
|
241 |
image_generator = generate_image(prompt_mash, steps, seed, cfg_scale, width, height, lora_scale, progress)
|
242 |
|
|
|
255 |
with open(temp_file.name, "rb") as f:
|
256 |
img_base64 = base64.b64encode(f.read()).decode("utf-8")
|
257 |
|
258 |
+
return final_image, temp_file.name, base64_str
|
259 |
|
260 |
css = '''
|
261 |
#gen_btn{height: 100%}
|