Update pages/Life_cycle_of_ML.py
Browse files- pages/Life_cycle_of_ML.py +11 -11
pages/Life_cycle_of_ML.py
CHANGED
|
@@ -856,17 +856,17 @@ def affine_transformation_demo():
|
|
| 856 |
|
| 857 |
ipynb_file_path = "Affine_Transformation.ipynb"
|
| 858 |
|
| 859 |
-
|
| 860 |
-
|
| 861 |
-
|
| 862 |
-
|
| 863 |
-
|
| 864 |
-
|
| 865 |
-
|
| 866 |
-
|
| 867 |
-
|
| 868 |
-
|
| 869 |
-
|
| 870 |
|
| 871 |
|
| 872 |
|
|
|
|
| 856 |
|
| 857 |
ipynb_file_path = "Affine_Transformation.ipynb"
|
| 858 |
|
| 859 |
+
# Read the PDF file in binary mode
|
| 860 |
+
with open(ipynb_file_path, "rb") as file:
|
| 861 |
+
ipynb_data = file.read()
|
| 862 |
+
|
| 863 |
+
# Create a download button
|
| 864 |
+
st.download_button(
|
| 865 |
+
label="Download Notebook",
|
| 866 |
+
data=pdf_data,
|
| 867 |
+
file_name="Affine Transformation Using Python.ipynb",
|
| 868 |
+
mime="application/json",
|
| 869 |
+
)
|
| 870 |
|
| 871 |
|
| 872 |
|