Phaneendrabayi commited on
Commit
db41899
·
verified ·
1 Parent(s): fe7c320

Update pages/Life_cycle_of_ML.py

Browse files
Files changed (1) hide show
  1. pages/Life_cycle_of_ML.py +15 -1
pages/Life_cycle_of_ML.py CHANGED
@@ -2,7 +2,6 @@ import streamlit as st
2
  import numpy as np
3
  import cv2
4
  import pandas as pd
5
- import tempfile
6
 
7
  def main_page():
8
  # Title and Introduction
@@ -1007,6 +1006,21 @@ cap.release()
1007
  vid.release() # Release video source
1008
  cv2.destroyAllWindows() # Close all OpenCV windows
1009
  """, language="python")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1010
 
1011
 
1012
 
 
2
  import numpy as np
3
  import cv2
4
  import pandas as pd
 
5
 
6
  def main_page():
7
  # Title and Introduction
 
1006
  vid.release() # Release video source
1007
  cv2.destroyAllWindows() # Close all OpenCV windows
1008
  """, language="python")
1009
+
1010
+ # Path to the existing PDF file
1011
+ pdf_file_path = "Video_Handling.ipynb"
1012
+
1013
+ # Read the PDF file in binary mode
1014
+ with open(pdf_file_path, "rb") as pdf_file:
1015
+ pdf_data = pdf_file.read()
1016
+
1017
+ # Create a download button
1018
+ st.download_button(
1019
+ label="Download PDF",
1020
+ data=pdf_data,
1021
+ file_name="Caputering Videos Using OpenCV.pdf",
1022
+ mime="application/json",
1023
+ )
1024
 
1025
 
1026