Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ import queue
|
|
12 |
import time
|
13 |
from PIL import Image
|
14 |
from io import BytesIO
|
15 |
-
os.makedirs("
|
16 |
|
17 |
nest_asyncio.apply()
|
18 |
|
@@ -116,7 +116,7 @@ def decode_and_save_image(image_b64, filename):
|
|
116 |
from io import BytesIO
|
117 |
|
118 |
# Ensure the path is inside created_image/
|
119 |
-
full_path = os.path.join("
|
120 |
image_b64 = image_b64.strip()
|
121 |
missing_padding = len(image_b64) % 4
|
122 |
if missing_padding:
|
|
|
12 |
import time
|
13 |
from PIL import Image
|
14 |
from io import BytesIO
|
15 |
+
os.makedirs("AI-Marketing-Content-Creator/created_image", exist_ok=True)
|
16 |
|
17 |
nest_asyncio.apply()
|
18 |
|
|
|
116 |
from io import BytesIO
|
117 |
|
118 |
# Ensure the path is inside created_image/
|
119 |
+
full_path = os.path.join("AI-Marketing-Content-Creator/created_image", filename)
|
120 |
image_b64 = image_b64.strip()
|
121 |
missing_padding = len(image_b64) % 4
|
122 |
if missing_padding:
|