andreped commited on
Commit
25fa374
1 Parent(s): 6c2a565

Formatet app

Browse files
Files changed (1) hide show
  1. demo/src/inference.py +3 -3
demo/src/inference.py CHANGED
@@ -30,8 +30,8 @@ def run_model(
30
  if os.path.exists("./result/"):
31
  shutil.rmtree("./result/")
32
 
33
- patient_directory = ''
34
- output_path = ''
35
  try:
36
  # setup temporary patient directory
37
  filename = input_path.split("/")[-1]
@@ -94,7 +94,7 @@ def run_model(
94
  shutil.rmtree(patient_directory)
95
  if os.path.exists(output_path):
96
  shutil.rmtree(output_path)
97
- except Exception as e:
98
  print(traceback.format_exc())
99
  # Clean-up
100
  if os.path.exists(patient_directory):
 
30
  if os.path.exists("./result/"):
31
  shutil.rmtree("./result/")
32
 
33
+ patient_directory = ""
34
+ output_path = ""
35
  try:
36
  # setup temporary patient directory
37
  filename = input_path.split("/")[-1]
 
94
  shutil.rmtree(patient_directory)
95
  if os.path.exists(output_path):
96
  shutil.rmtree(output_path)
97
+ except Exception:
98
  print(traceback.format_exc())
99
  # Clean-up
100
  if os.path.exists(patient_directory):