Daniel Gil-U Fuhge commited on
Commit
b135ade
1 Parent(s): 3cc8ee8

adjust paths

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,12 +15,12 @@ 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
- 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")
22
  sys.setrecursionlimit(1500)
23
  animateLogo(path, targetPath)
24
  with open(path, "rb") as file:
25
- st.download_button('Download animated SVG', data=file, file_name=uploaded_file.name[:-3]+"_animated.svg")
26
 
 
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[:-4]+"_animated.svg")
19
  with open(path,"wb") as f:
20
  f.write(uploaded_file.getbuffer())
21
  st.success("Saved File")
22
  sys.setrecursionlimit(1500)
23
  animateLogo(path, targetPath)
24
  with open(path, "rb") as file:
25
+ st.download_button('Download animated SVG', data=file, file_name=uploaded_file.name[:-4]+"_animated.svg")
26