vam
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ def create_meme(prompt):
|
|
54 |
closest_text_idx = np.argmax(similarities)
|
55 |
|
56 |
img_path = meme_filename[closest_text_idx]
|
57 |
-
img = mpimg.imread(f'
|
58 |
|
59 |
white_space_height = 100
|
60 |
white_space = np.ones((white_space_height, img.shape[1], img.shape[2]), dtype=img.dtype) * 255
|
|
|
54 |
closest_text_idx = np.argmax(similarities)
|
55 |
|
56 |
img_path = meme_filename[closest_text_idx]
|
57 |
+
img = mpimg.imread(f'kaggle/input/memedata/{img_path}')
|
58 |
|
59 |
white_space_height = 100
|
60 |
white_space = np.ones((white_space_height, img.shape[1], img.shape[2]), dtype=img.dtype) * 255
|