haritsahm commited on
Commit
aafa721
·
1 Parent(s): 6a34df2

Modify example files to read from relative path

Browse files
Files changed (1) hide show
  1. main.py +5 -5
main.py CHANGED
@@ -1,5 +1,3 @@
1
- import os
2
- import re
3
  from pathlib import Path
4
  from typing import List
5
 
@@ -30,9 +28,11 @@ INPUT_FILES = [
30
  OUTPUT_GALLERY = gr.Gallery(
31
  label='Highlighted Area').style(grid=[2], height='auto')
32
  EXAMPLE_IMAGES = [
33
- os.path.join(os.path.dirname(__file__), f'examples/{f}')
34
- for f in os.listdir('examples/')
35
- if re.search(r'.*.(jpg|jpeg|tiff|JPEG|PNG|png)', f)
 
 
36
  ]
37
 
38
 
 
 
 
1
  from pathlib import Path
2
  from typing import List
3
 
 
28
  OUTPUT_GALLERY = gr.Gallery(
29
  label='Highlighted Area').style(grid=[2], height='auto')
30
  EXAMPLE_IMAGES = [
31
+ ['examples/f4b2d377f43ba0bd_left_cc.png',
32
+ 'examples/f4b2d377f43ba0bd_left_mlo.jpg'],
33
+ ['examples/f4b2d377f43ba0bd_right_cc.png',
34
+ 'examples/f4b2d377f43ba0bd_right_mlo.jpeg'],
35
+ ['examples/P_00001_LEFT_cc.jpg', 'examples/P_00001_LEFT_mlo.jpeg'],
36
  ]
37
 
38