Spaces:
Running
Running
Chandima Prabhath
commited on
Commit
·
65616bc
1
Parent(s):
1f50f83
Rename generated image file to include 'flux' prefix for better identification
Browse files
FLUX.py
CHANGED
@@ -106,7 +106,7 @@ def generate_image(prompt, request_id, current_request_id, image_dir, attempt=0)
|
|
106 |
raise
|
107 |
|
108 |
timestamp = int(time.time())
|
109 |
-
image_filename = f"
|
110 |
image_path = os.path.join(image_dir, image_filename)
|
111 |
|
112 |
# Ensure the image directory exists
|
|
|
106 |
raise
|
107 |
|
108 |
timestamp = int(time.time())
|
109 |
+
image_filename = f"flux_{timestamp}.png"
|
110 |
image_path = os.path.join(image_dir, image_filename)
|
111 |
|
112 |
# Ensure the image directory exists
|