Spaces:
Runtime error
Runtime error
Commit
·
8be5d25
1
Parent(s):
d529b52
Update app.py
Browse files
app.py
CHANGED
@@ -10,8 +10,11 @@ import wget
|
|
10 |
import time
|
11 |
|
12 |
def imageInput(device, src):
|
13 |
-
os.
|
14 |
-
os.
|
|
|
|
|
|
|
15 |
if src == 'Upload your own data.':
|
16 |
image_file = st.file_uploader("Upload An Image", type=['png', 'jpeg', 'jpg'])
|
17 |
col1, col2 = st.columns(2)
|
|
|
10 |
import time
|
11 |
|
12 |
def imageInput(device, src):
|
13 |
+
current_dir = os.getcwd()
|
14 |
+
upload_path = os.path.join(current_dir, 'data/uploads')
|
15 |
+
output_path = os.path.join(current_dir, 'data/outputs')
|
16 |
+
os.makedirs(upload_path)
|
17 |
+
os.makedirs(output_path)
|
18 |
if src == 'Upload your own data.':
|
19 |
image_file = st.file_uploader("Upload An Image", type=['png', 'jpeg', 'jpg'])
|
20 |
col1, col2 = st.columns(2)
|