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