TheKnight115 commited on
Commit
e2c2e86
·
verified ·
1 Parent(s): 54ba35e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -52,7 +52,7 @@ elif option == "Video":
52
  st.video(video_path)
53
  if st.button("Process Video"):
54
  with st.spinner("Processing Video..."):
55
- processed_path = process_video(video_path, "fonts/alfont_com_arial-1.ttf")
56
  if processed_path and os.path.exists(processed_path):
57
  st.success("Video processed successfully!")
58
  st.video(processed_path)
@@ -75,7 +75,7 @@ elif option == "Live Camera":
75
 
76
  class VideoTransformer(VideoTransformerBase):
77
  def __init__(self):
78
- self.font_path = "fonts/alfont_com_arial-1.ttf"
79
 
80
  def transform(self, frame):
81
  img = frame.to_ndarray(format="bgr24")
 
52
  st.video(video_path)
53
  if st.button("Process Video"):
54
  with st.spinner("Processing Video..."):
55
+ processed_path = process_video(video_path, "alfont_com_arial-1.ttf")
56
  if processed_path and os.path.exists(processed_path):
57
  st.success("Video processed successfully!")
58
  st.video(processed_path)
 
75
 
76
  class VideoTransformer(VideoTransformerBase):
77
  def __init__(self):
78
+ self.font_path = "alfont_com_arial-1.ttf"
79
 
80
  def transform(self, frame):
81
  img = frame.to_ndarray(format="bgr24")