Spaces:
Runtime error
Runtime error
Commit
·
7d14e74
1
Parent(s):
7c1df62
Update app.py
Browse files
app.py
CHANGED
@@ -17,9 +17,9 @@ import glob
|
|
17 |
import time
|
18 |
|
19 |
|
20 |
-
def lowlight(
|
21 |
os.environ['CUDA_VISIBLE_DEVICES']=''
|
22 |
-
data_lowlight = Image.open(
|
23 |
|
24 |
|
25 |
|
@@ -37,8 +37,9 @@ def lowlight(image_path):
|
|
37 |
|
38 |
end_time = (time.time() - start)
|
39 |
print(end_time)
|
40 |
-
|
41 |
-
result_path =
|
|
|
42 |
if not os.path.exists(image_path.replace('/'+image_path.split("/")[-1],'')):
|
43 |
os.makedirs(image_path.replace('/'+image_path.split("/")[-1],''))
|
44 |
|
|
|
17 |
import time
|
18 |
|
19 |
|
20 |
+
def lowlight(image):
|
21 |
os.environ['CUDA_VISIBLE_DEVICES']=''
|
22 |
+
data_lowlight = Image.open(image)
|
23 |
|
24 |
|
25 |
|
|
|
37 |
|
38 |
end_time = (time.time() - start)
|
39 |
print(end_time)
|
40 |
+
|
41 |
+
result_path = 'data/result/'
|
42 |
+
|
43 |
if not os.path.exists(image_path.replace('/'+image_path.split("/")[-1],'')):
|
44 |
os.makedirs(image_path.replace('/'+image_path.split("/")[-1],''))
|
45 |
|