Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -93,10 +93,13 @@ def run_lora(prompt, cfg_scale, steps, randomize_seed, seed, width, height, lora
|
|
93 |
metadata = PngImagePlugin.PngInfo()
|
94 |
metadata.add_text("parameters", new_metadata_string)
|
95 |
|
|
|
|
|
|
|
|
|
96 |
image.save(image_path, pnginfo=metadata)
|
97 |
|
98 |
-
|
99 |
-
response = supabase.storage.from_('generated_images').upload(image_path, file)
|
100 |
|
101 |
|
102 |
|
|
|
93 |
metadata = PngImagePlugin.PngInfo()
|
94 |
metadata.add_text("parameters", new_metadata_string)
|
95 |
|
96 |
+
#Save image in supabase
|
97 |
+
response = supabase.storage.from_('generated_images').upload(image_filename, image)
|
98 |
+
|
99 |
+
#Save the tmp image
|
100 |
image.save(image_path, pnginfo=metadata)
|
101 |
|
102 |
+
|
|
|
103 |
|
104 |
|
105 |
|