Spaces:
Running
Running
Update app.py
Browse files
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, "
|
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 = "
|
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")
|