Spaces:
Paused
Paused
giorgio-caparvi
commited on
Commit
·
fa42c92
1
Parent(s):
5c93f7d
fixed sketch name to create
Browse files- api/app.py +1 -1
api/app.py
CHANGED
@@ -68,7 +68,7 @@ def generate_design():
|
|
68 |
|
69 |
|
70 |
# Saving sketch in filesystem
|
71 |
-
model_key = list(json_data_from_req[
|
72 |
image_filename = f"{model_key}{image_suffix}" # Nome file immagine es: "03191_00.jpg"
|
73 |
print("###################################### NOME SKETCH: ", image_filename)
|
74 |
print("###################################### DIRECTORY DOVE LO SALVO: ", image_save_dir)
|
|
|
68 |
|
69 |
|
70 |
# Saving sketch in filesystem
|
71 |
+
model_key = list(json_data_from_req[dataset_name].keys())[0] # Es: "03191"
|
72 |
image_filename = f"{model_key}{image_suffix}" # Nome file immagine es: "03191_00.jpg"
|
73 |
print("###################################### NOME SKETCH: ", image_filename)
|
74 |
print("###################################### DIRECTORY DOVE LO SALVO: ", image_save_dir)
|