Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -132,10 +132,16 @@ 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 |
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="{
|
| 139 |
html_out+="</div>"
|
| 140 |
except Exception as e:
|
| 141 |
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 |
+
|
| 136 |
print(os.path.join(os.getcwd(), f"{uid}.gif"))
|
| 137 |
out_gif_url = os.path.join(os.getcwd(), f"{uid}.gif")
|
| 138 |
+
|
| 139 |
+
img_src=f"https://huggingface.co/broadfield-dev/geoelectric/blob/main/{uid}.gif"
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
|
| 143 |
html_out=f"<style>{css}</style><div>"
|
| 144 |
+
html_out+=f'<div class="img_class"><img src="{img_src}"></div>'
|
| 145 |
html_out+="</div>"
|
| 146 |
except Exception as e:
|
| 147 |
print("ERROR HAPPENED")
|