Spaces:
Running
on
Zero
Running
on
Zero
Rijgersberg
commited on
Commit
•
35095c7
1
Parent(s):
b8fb354
Update app.py
Browse files
app.py
CHANGED
@@ -19,6 +19,7 @@ import os
|
|
19 |
def array_to_image_path(image_array):
|
20 |
# Convert numpy array to PIL Image
|
21 |
img = Image.fromarray(np.uint8(image_array))
|
|
|
22 |
|
23 |
# Generate a unique filename using timestamp
|
24 |
timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
|
|
|
19 |
def array_to_image_path(image_array):
|
20 |
# Convert numpy array to PIL Image
|
21 |
img = Image.fromarray(np.uint8(image_array))
|
22 |
+
img.thumbnail((1024, 1024))
|
23 |
|
24 |
# Generate a unique filename using timestamp
|
25 |
timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
|