Omnibus commited on
Commit
aea9da6
·
verified ·
1 Parent(s): 23ec58f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 spl2.endswith(".gif") or spl2.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")]
 
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")]