Spaces:
Runtime error
Runtime error
chuanenlin
commited on
Commit
•
d0419f9
1
Parent(s):
66cabcf
Update videogenic.py
Browse files- videogenic.py +1 -1
videogenic.py
CHANGED
@@ -160,7 +160,7 @@ def format_img(img):
|
|
160 |
|
161 |
def get_photos(keyword):
|
162 |
photo_collection = []
|
163 |
-
for filename in glob.glob(f'photos/{st.session_state.domain.lower()}/*.jpeg'):
|
164 |
photo = Image.open(filename)
|
165 |
photo_collection.append(photo)
|
166 |
return photo_collection
|
|
|
160 |
|
161 |
def get_photos(keyword):
|
162 |
photo_collection = []
|
163 |
+
for filename in glob.glob(f'photos/{st.session_state.domain.lower()}/*.jpeg')[:1]:
|
164 |
photo = Image.open(filename)
|
165 |
photo_collection.append(photo)
|
166 |
return photo_collection
|