Spaces:
Sleeping
Sleeping
File size: 439 Bytes
ca8935b 7d7cace ca8935b 55a439e a3794b3 a84592b a3794b3 a84592b a3794b3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import streamlit as st
import os
x = st.slider('Select a value')
st.write(x, 'squared is', x * x)
uploaded_file = st.file_uploader("Upload File")
if uploaded_file is not None:
file_details = {"FileName":uploaded_file.name,"FileType":uploaded_file.type}
st.write(file_details)
with open(os.path.join("tempDir",uploaded_file.name),"wb") as f:
f.write(uploaded_file.getbuffer())
st.success("Saved File")
|