Spaces:
Paused
Paused
fixed image saving format
Browse files- api/app.py +1 -1
api/app.py
CHANGED
@@ -52,7 +52,7 @@ def generate_design():
|
|
52 |
|
53 |
# Saving sketch in filesystem
|
54 |
model_key = list(json_data_from_req["MODEL"].keys())[0] # Es: "03191"
|
55 |
-
image_filename = f"{model_key}_00.
|
56 |
image_save_path = os.path.join(image_save_dir, image_filename)
|
57 |
image.save(image_save_path, format='JPEG')
|
58 |
|
|
|
52 |
|
53 |
# Saving sketch in filesystem
|
54 |
model_key = list(json_data_from_req["MODEL"].keys())[0] # Es: "03191"
|
55 |
+
image_filename = f"{model_key}_00.jpeg" # Nome file immagine es: "03191_00.jpg"
|
56 |
image_save_path = os.path.join(image_save_dir, image_filename)
|
57 |
image.save(image_save_path, format='JPEG')
|
58 |
|