Spaces:
Running
Running
Daniel Gil-U Fuhge
commited on
Commit
•
310c2df
1
Parent(s):
d019106
updated app
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import streamlit as st
|
2 |
import os
|
|
|
3 |
|
4 |
|
5 |
uploaded_file = st.file_uploader('Please upload your SVG')
|
@@ -11,4 +12,6 @@ if uploaded_file is not None:
|
|
11 |
with open(os.path.join("tempDir",uploaded_file.name),"wb") as f:
|
12 |
f.write(uploaded_file.getbuffer())
|
13 |
st.success("Saved File")
|
|
|
|
|
14 |
|
|
|
1 |
import streamlit as st
|
2 |
import os
|
3 |
+
from animationPipeline import animate_logo
|
4 |
|
5 |
|
6 |
uploaded_file = st.file_uploader('Please upload your SVG')
|
|
|
12 |
with open(os.path.join("tempDir",uploaded_file.name),"wb") as f:
|
13 |
f.write(uploaded_file.getbuffer())
|
14 |
st.success("Saved File")
|
15 |
+
animate_logo(os.path.join('tempDir', uploaded_file.name))
|
16 |
+
st.download_button('Download animated SVG', os.path.join('tempDir', uploaded_file.name))
|
17 |
|