Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,11 +10,8 @@ import moviepy.video.io.ImageSequenceClip
|
|
| 10 |
from io import BytesIO
|
| 11 |
from tkinter import Tcl
|
| 12 |
|
| 13 |
-
|
| 14 |
-
# Flag to track if subprocess commands have been executed
|
| 15 |
subprocess_executed = False
|
| 16 |
|
| 17 |
-
# Title with superscript and subtitle
|
| 18 |
st.markdown("""
|
| 19 |
<div style='text-align: center;'>
|
| 20 |
<h1 style='color: white;'>
|
|
@@ -78,7 +75,6 @@ if uploaded_zip_file is not None:
|
|
| 78 |
with zipfile.ZipFile(uploaded_zip_file, "r") as zip_ref:
|
| 79 |
zip_ref.extractall(temp_dir)
|
| 80 |
|
| 81 |
-
# Get a list of DICOM files in the directory
|
| 82 |
dicom_files = [os.path.join(temp_dir, f) for f in os.listdir(temp_dir) if f.endswith(".dcm")]
|
| 83 |
dicom_files.sort() # Sort the files
|
| 84 |
|
|
|
|
| 10 |
from io import BytesIO
|
| 11 |
from tkinter import Tcl
|
| 12 |
|
|
|
|
|
|
|
| 13 |
subprocess_executed = False
|
| 14 |
|
|
|
|
| 15 |
st.markdown("""
|
| 16 |
<div style='text-align: center;'>
|
| 17 |
<h1 style='color: white;'>
|
|
|
|
| 75 |
with zipfile.ZipFile(uploaded_zip_file, "r") as zip_ref:
|
| 76 |
zip_ref.extractall(temp_dir)
|
| 77 |
|
|
|
|
| 78 |
dicom_files = [os.path.join(temp_dir, f) for f in os.listdir(temp_dir) if f.endswith(".dcm")]
|
| 79 |
dicom_files.sort() # Sort the files
|
| 80 |
|