Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,5 +2,12 @@ import streamlit as st
|
|
2 |
|
3 |
x = st.slider('Select a value')
|
4 |
st.write(x, 'squared is', x * x)
|
5 |
-
|
6 |
-
st.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
x = st.slider('Select a value')
|
4 |
st.write(x, 'squared is', x * x)
|
5 |
+
|
6 |
+
uploaded_file = st.file_uploader("Upload File")
|
7 |
+
if uploaded_file is not None:
|
8 |
+
file_details = {"FileName":image_file.name,"FileType":image_file.type}
|
9 |
+
st.write(file_details)
|
10 |
+
with open(os.path.join("tempDir",image_file.name),"wb") as f:
|
11 |
+
f.write(uploaded_file.getbuffer())
|
12 |
+
st.success("Saved File")
|
13 |
+
|