w3robotics commited on
Commit
c892be7
·
verified ·
1 Parent(s): 7d7cace

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -4,6 +4,18 @@ import os
4
  x = st.slider('Select a value')
5
  st.write(x, 'squared is', x * x)
6
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  uploaded_file = st.file_uploader("Upload File")
8
  if uploaded_file is not None:
9
  file_details = {"FileName":uploaded_file.name,"FileType":uploaded_file.type}
 
4
  x = st.slider('Select a value')
5
  st.write(x, 'squared is', x * x)
6
 
7
+
8
+ path = './tempDir'
9
+
10
+ # Check if the directory already exists
11
+ if not os.path.exists(path):
12
+ os.mkdir(path)
13
+ st.write(f"Directory '{path}' created")
14
+ else:
15
+ st.write(f"Directory '{path}' already exists")
16
+
17
+
18
+
19
  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}