Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -38,8 +38,9 @@ def extract_snapshots(watchface_link: str, output_type='Both') -> list[str]:
|
|
38 |
def extract_snapshots_from(watchface_links: list[str], output_kind='Both') -> list[str]:
|
39 |
assert(watchface_links != None and len(watchface_links) >= 1)
|
40 |
|
|
|
41 |
snapshots = []
|
42 |
-
for watchface_link in
|
43 |
images = extract_snapshots(watchface_link, output_kind)
|
44 |
images = list(map(rename_file, images))
|
45 |
snapshots += images
|
|
|
38 |
def extract_snapshots_from(watchface_links: list[str], output_kind='Both') -> list[str]:
|
39 |
assert(watchface_links != None and len(watchface_links) >= 1)
|
40 |
|
41 |
+
filtered_watchface_links = [link for link in watchface_links if link.endswith('watchface')]
|
42 |
snapshots = []
|
43 |
+
for watchface_link in filtered_watchface_links:
|
44 |
images = extract_snapshots(watchface_link, output_kind)
|
45 |
images = list(map(rename_file, images))
|
46 |
snapshots += images
|