Afrinetwork7
commited on
Commit
•
2db8690
1
Parent(s):
af29733
Update app.py
Browse files
app.py
CHANGED
@@ -109,7 +109,7 @@ def generate(
|
|
109 |
cache_key = hashlib.sha256(f"{prompt}{seed}".encode()).hexdigest()
|
110 |
|
111 |
# Check if the image is already in the cache
|
112 |
-
if os.path.exists(os.path.join(CACHE_DIR, f"{cache_key}.png"))
|
113 |
print("Image found in cache")
|
114 |
return [os.path.join(CACHE_DIR, f"{cache_key}.png")], seed
|
115 |
|
|
|
109 |
cache_key = hashlib.sha256(f"{prompt}{seed}".encode()).hexdigest()
|
110 |
|
111 |
# Check if the image is already in the cache
|
112 |
+
if os.path.exists(os.path.join(CACHE_DIR, f"{cache_key}.png")):
|
113 |
print("Image found in cache")
|
114 |
return [os.path.join(CACHE_DIR, f"{cache_key}.png")], seed
|
115 |
|