Spaces:
Running
Running
Daniel Gil-U Fuhge
commited on
Commit
•
3180cb0
1
Parent(s):
a09c67b
update file names
Browse files
app.py
CHANGED
@@ -15,6 +15,7 @@ if uploaded_file is not None:
|
|
15 |
if not os.path.exists('tempDir'):
|
16 |
os.mkdir('tempDir')
|
17 |
path = os.path.join('tempDir', uploaded_file.name)
|
|
|
18 |
with open(path,"wb") as f:
|
19 |
f.write(uploaded_file.getbuffer())
|
20 |
st.success("Saved File")
|
|
|
15 |
if not os.path.exists('tempDir'):
|
16 |
os.mkdir('tempDir')
|
17 |
path = os.path.join('tempDir', uploaded_file.name)
|
18 |
+
targetPath = os.path.join('tempDir', uploaded_file.name[:-3]+"_animated.svg")
|
19 |
with open(path,"wb") as f:
|
20 |
f.write(uploaded_file.getbuffer())
|
21 |
st.success("Saved File")
|