killwithabass commited on
Commit
87583b0
Β·
verified Β·
1 Parent(s): 81ef357

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
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
- #Save image in supabase
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