Skip to content

Commit bf6baa9

Browse files
authored
Update algorithm.py
1 parent 32b3658 commit bf6baa9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

algorithm.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os
22
import random
3+
import sys
34

45
random.seed(90210)
56

@@ -9,6 +10,9 @@
910
def my_algorithm(image):
1011
return [random.random() for _ in range(len(diagnoses))]
1112

13+
if not os.path.exists('/images'):
14+
print('The directory /images does not exist, did you forget to mount it?', file=sys.stderr)
15+
sys.exit(1)
1216

1317
# print headers
1418
print(','.join(['image'] + diseases))

0 commit comments

Comments
 (0)