Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,22 +7,22 @@ import subprocess
|
|
7 |
|
8 |
import subprocess
|
9 |
|
10 |
-
#
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
|
27 |
# Streamlit app title
|
28 |
st.title("DICOM Image Viewer")
|
|
|
7 |
|
8 |
import subprocess
|
9 |
|
10 |
+
# Command to make the script executable
|
11 |
+
command = "chmod +x install.sh"
|
12 |
+
|
13 |
+
try:
|
14 |
+
subprocess.run(command, shell=True, check=True)
|
15 |
+
print("Script 'install.sh' has been made executable.")
|
16 |
+
except subprocess.CalledProcessError as e:
|
17 |
+
print(f"Error while making the script executable: {e}")
|
18 |
+
|
19 |
+
command = "./install.sh"
|
20 |
+
|
21 |
+
try:
|
22 |
+
subprocess.run(command, shell=True, check=True)
|
23 |
+
print("Script 'install.sh' has been made executable.")
|
24 |
+
except subprocess.CalledProcessError as e:
|
25 |
+
print(f"Error while making the script executable: {e}")
|
26 |
|
27 |
# Streamlit app title
|
28 |
st.title("DICOM Image Viewer")
|