Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ x = st.slider('Select a value')
|
|
5 |
st.write(x, 'squared is', x * x)
|
6 |
|
7 |
|
8 |
-
path = "
|
9 |
|
10 |
# Check if the directory already exists
|
11 |
if not os.path.exists(path):
|
@@ -20,7 +20,7 @@ uploaded_file = st.file_uploader("Upload File")
|
|
20 |
if uploaded_file is not None:
|
21 |
file_details = {"FileName":uploaded_file.name,"FileType":uploaded_file.type}
|
22 |
st.write(file_details)
|
23 |
-
with open(os.path.join(uploaded_file.name),"wb") as f:
|
24 |
f.write(uploaded_file.getbuffer())
|
25 |
st.success("Saved File")
|
26 |
|
|
|
5 |
st.write(x, 'squared is', x * x)
|
6 |
|
7 |
|
8 |
+
path = "/data"
|
9 |
|
10 |
# Check if the directory already exists
|
11 |
if not os.path.exists(path):
|
|
|
20 |
if uploaded_file is not None:
|
21 |
file_details = {"FileName":uploaded_file.name,"FileType":uploaded_file.type}
|
22 |
st.write(file_details)
|
23 |
+
with open(os.path.join(path,uploaded_file.name),"wb") as f:
|
24 |
f.write(uploaded_file.getbuffer())
|
25 |
st.success("Saved File")
|
26 |
|