task conversion
Browse files
app.py
CHANGED
@@ -33,6 +33,8 @@ def run_front_detection(input_img):
|
|
33 |
os.remove('nnUNet_raw_data_base/nnUNet_raw_data/Task500_Glacier_zonefronts/imagesTs/test_0000.nii.gz')
|
34 |
|
35 |
front = Image.open(os.path.join(os.environ['RESULTS_FOLDER'], 'tifs/test_front.png'))
|
|
|
|
|
36 |
return front
|
37 |
|
38 |
demo = gr.Interface(run_front_detection, gr.Image(type='pil'), "image",interface_size=(1000, 1000))
|
|
|
33 |
os.remove('nnUNet_raw_data_base/nnUNet_raw_data/Task500_Glacier_zonefronts/imagesTs/test_0000.nii.gz')
|
34 |
|
35 |
front = Image.open(os.path.join(os.environ['RESULTS_FOLDER'], 'tifs/test_front.png'))
|
36 |
+
os.remove(os.path.join(os.environ['RESULTS_FOLDER'], 'tifs/test_front.png'))
|
37 |
+
|
38 |
return front
|
39 |
|
40 |
demo = gr.Interface(run_front_detection, gr.Image(type='pil'), "image",interface_size=(1000, 1000))
|