Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -110,7 +110,7 @@ def generate_flux_image(
|
|
110 |
timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
|
111 |
unique_id = str(uuid.uuid4())[:8]
|
112 |
filename = f"{timestamp}_{unique_id}.png"
|
113 |
-
filepath = os.path.join(
|
114 |
image.save(filepath)
|
115 |
# Devolver la imagen generada y el estado temporal (misma imagen)
|
116 |
return image
|
|
|
110 |
timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
|
111 |
unique_id = str(uuid.uuid4())[:8]
|
112 |
filename = f"{timestamp}_{unique_id}.png"
|
113 |
+
filepath = os.path.join(TMP_DIR, filename)
|
114 |
image.save(filepath)
|
115 |
# Devolver la imagen generada y el estado temporal (misma imagen)
|
116 |
return image
|