Spaces:
Paused
Paused
Daniel Gil-U Fuhge commited on
Commit ·
d228bd9
1
Parent(s): e17e8cc
add file uploader
Browse files- app.py +10 -2
- models/deepSVG_hierarchical_ordered.pth.tar +0 -3
app.py
CHANGED
|
@@ -1,4 +1,12 @@
|
|
| 1 |
import streamlit as st
|
|
|
|
| 2 |
|
| 3 |
-
|
| 4 |
-
st.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|
|
|
|
|
|
|
|
|
|
|
|