IanNathaniel commited on
Commit
7d14e74
1 Parent(s): 7c1df62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -17,9 +17,9 @@ import glob
17
  import time
18
 
19
 
20
- def lowlight(image_path):
21
  os.environ['CUDA_VISIBLE_DEVICES']=''
22
- data_lowlight = Image.open(image_path)
23
 
24
 
25
 
@@ -37,8 +37,9 @@ def lowlight(image_path):
37
 
38
  end_time = (time.time() - start)
39
  print(end_time)
40
- image_path = image_path.replace('','result')
41
- result_path = image_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