Spaces:
Sleeping
Sleeping
NikhilJoson
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -5,10 +5,10 @@ import random
|
|
5 |
import os
|
6 |
|
7 |
# Define the folder containing images
|
8 |
-
|
9 |
|
10 |
# Get the list of celebrity images from the folder
|
11 |
-
celebs = {os.path.splitext(file)[0]: os.path.join(
|
12 |
|
13 |
# Define pixel sizes for different levels of clarity
|
14 |
PIXEL_SIZES = [64, 48, 32, 24, 16, 12, 8, 4, 2]
|
|
|
5 |
import os
|
6 |
|
7 |
# Define the folder containing images
|
8 |
+
CHRS_FOLDER = "./Cartoon_Characters"
|
9 |
|
10 |
# Get the list of celebrity images from the folder
|
11 |
+
celebs = {os.path.splitext(file)[0]: os.path.join(CHRS_FOLDER, file) for file in os.listdir(CHRS_FOLDER)}
|
12 |
|
13 |
# Define pixel sizes for different levels of clarity
|
14 |
PIXEL_SIZES = [64, 48, 32, 24, 16, 12, 8, 4, 2]
|