Daniel Gil-U Fuhge commited on
Commit
d228bd9
1 Parent(s): e17e8cc

add file uploader

Browse files
app.py CHANGED
@@ -1,4 +1,12 @@
1
  import streamlit as st
 
2
 
3
- x = st.slider('Select a value')
4
- st.write(x, 'squared is', x * x)
 
 
 
 
 
 
 
 
1
  import streamlit as st
2
+ import os
3
 
4
+
5
+ uploaded_file = st.file_uploader('Please upload your SVG')
6
+ if uploaded_file is not None:
7
+ file_details = {"FileName":uploaded_file.name,"FileType":uploaded_file.type}
8
+ st.write(file_details)
9
+ with open(os.path.join("tempDir",uploaded_file.name),"wb") as f:
10
+ f.write(uploaded_file.getbuffer())
11
+ st.success("Saved File")
12
+
models/deepSVG_hierarchical_ordered.pth.tar DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:7b44e93095426b18ef2dfaf5ebbced8b7d29dcd6ce79325681d976acb1366a22
3
- size 41280531