AdritRao commited on
Commit
77d2518
1 Parent(s): baacf2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -58,6 +58,14 @@ if uploaded_zip_file is not None:
58
  dicom_files = [os.path.join(temp_dir, f) for f in os.listdir(temp_dir) if f.endswith(".dcm")]
59
  dicom_files.sort() # Sort the files
60
 
 
 
 
 
 
 
 
 
61
  command = "./inference.sh"
62
 
63
  try:
 
58
  dicom_files = [os.path.join(temp_dir, f) for f in os.listdir(temp_dir) if f.endswith(".dcm")]
59
  dicom_files.sort() # Sort the files
60
 
61
+ command = "chmod +x inference.sh"
62
+
63
+ try:
64
+ subprocess.run(command, shell=True, check=True)
65
+ print("Script 'inference.sh' has started running.")
66
+ except subprocess.CalledProcessError as e:
67
+ print(f"Error while making the script executable: {e}")
68
+
69
  command = "./inference.sh"
70
 
71
  try: