Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ def run_inference():
|
|
52 |
|
53 |
# Function to read and display the DICOM image
|
54 |
@st.cache_resource
|
55 |
-
def convert_dicom_to_png(
|
56 |
# Convert DICOM to a PNG image
|
57 |
plt.imshow(dicom_data.pixel_array, cmap=plt.cm.bone)
|
58 |
plt.axis("off")
|
|
|
52 |
|
53 |
# Function to read and display the DICOM image
|
54 |
@st.cache_resource
|
55 |
+
def convert_dicom_to_png(_dicom_data):
|
56 |
# Convert DICOM to a PNG image
|
57 |
plt.imshow(dicom_data.pixel_array, cmap=plt.cm.bone)
|
58 |
plt.axis("off")
|