Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -105,11 +105,11 @@ def make_animation():
|
|
105 |
for line in spl:
|
106 |
spl2 = line.split(">")[0].strip('""')
|
107 |
if spl2.endswith("/"):
|
108 |
-
feed2 = requests.get(get_url)
|
109 |
spl3 = feed2.text.split("href=")
|
110 |
for line2 in spl3:
|
111 |
spl3 = line2.split(">")[0].strip('""')
|
112 |
-
if spl3.endswith(".png") or
|
113 |
gif_box.append(f'{get_url}{spl2}{spl3}')
|
114 |
'''
|
115 |
frames = [Image.open(image) for image in glob.glob(f"{frame_folder}/*.JPG")]
|
|
|
105 |
for line in spl:
|
106 |
spl2 = line.split(">")[0].strip('""')
|
107 |
if spl2.endswith("/"):
|
108 |
+
feed2 = requests.get(f'{get_url}{spl2}')
|
109 |
spl3 = feed2.text.split("href=")
|
110 |
for line2 in spl3:
|
111 |
spl3 = line2.split(">")[0].strip('""')
|
112 |
+
if spl3.endswith(".png") or spl3.endswith(".gif") or spl3.endswith(".jpg"):
|
113 |
gif_box.append(f'{get_url}{spl2}{spl3}')
|
114 |
'''
|
115 |
frames = [Image.open(image) for image in glob.glob(f"{frame_folder}/*.JPG")]
|