Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -132,9 +132,10 @@ def make_animation(url1="",url2="",url3="",url4="",url5="",url6="",url7="",url8=
|
|
| 132 |
clip = ic.ImageSequenceClip(frames, fps = fps)
|
| 133 |
clip.write_gif(f"{uid}.gif",fps=fps)
|
| 134 |
files_out.append(f'{uid}.gif')
|
|
|
|
|
|
|
| 135 |
html_out=f"<style>{css}</style><div>"
|
| 136 |
-
|
| 137 |
-
html_out+=f'<div class="img_class"><img src="{os.getcwd()}/{uid}.gif"></div>'
|
| 138 |
html_out+="</div>"
|
| 139 |
except Exception as e:
|
| 140 |
print("ERROR HAPPENED")
|
|
|
|
| 132 |
clip = ic.ImageSequenceClip(frames, fps = fps)
|
| 133 |
clip.write_gif(f"{uid}.gif",fps=fps)
|
| 134 |
files_out.append(f'{uid}.gif')
|
| 135 |
+
print(os.path.join(os.getcwd(), f"{uid}.gif"))
|
| 136 |
+
out_gif_url = os.path.join(os.getcwd(), f"{uid}.gif")
|
| 137 |
html_out=f"<style>{css}</style><div>"
|
| 138 |
+
html_out+=f'<div class="img_class"><img src="{out_gif_url}"></div>'
|
|
|
|
| 139 |
html_out+="</div>"
|
| 140 |
except Exception as e:
|
| 141 |
print("ERROR HAPPENED")
|