AdritRao commited on
Commit
9cfe6a8
·
1 Parent(s): 0cf4827

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -30,12 +30,6 @@ if uploaded_zip_file is not None:
30
  try:
31
  # Create a temporary directory to unzip the files
32
 
33
- temp_dir = "/home/user/app/C2C/Comp2Comp/temp_dicom_dir"
34
-
35
- os.makedirs(temp_dir, exist_ok=True)
36
- full_path = os.path.abspath(temp_dir)
37
-
38
- st.write(f"Temporary directory path: {full_path}")
39
 
40
  command = "chmod +x install.sh"
41
  try:
@@ -51,7 +45,13 @@ if uploaded_zip_file is not None:
51
  except subprocess.CalledProcessError as e:
52
  print(f"Error while running the script: {e}")
53
 
 
 
 
 
54
 
 
 
55
  with zipfile.ZipFile(uploaded_zip_file, "r") as zip_ref:
56
  zip_ref.extractall(temp_dir)
57
 
 
30
  try:
31
  # Create a temporary directory to unzip the files
32
 
 
 
 
 
 
 
33
 
34
  command = "chmod +x install.sh"
35
  try:
 
45
  except subprocess.CalledProcessError as e:
46
  print(f"Error while running the script: {e}")
47
 
48
+ temp_dir = "/home/user/app/C2C/Comp2Comp/temp_dicom_dir"
49
+
50
+ os.makedirs(temp_dir, exist_ok=True)
51
+ full_path = os.path.abspath(temp_dir)
52
 
53
+ st.write(f"Temporary directory path: {full_path}")
54
+
55
  with zipfile.ZipFile(uploaded_zip_file, "r") as zip_ref:
56
  zip_ref.extractall(temp_dir)
57