Spaces:
Sleeping
Sleeping
Update2
Browse files
app.py
CHANGED
|
@@ -3,7 +3,20 @@ import streamlit as st
|
|
| 3 |
import subprocess
|
| 4 |
|
| 5 |
# Title and introduction
|
| 6 |
-
st.title("
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
st.markdown("""
|
| 8 |
Welcome to the **Workout Tracker App**!
|
| 9 |
Select your desired workout below, and the app will guide you through the exercise with real-time feedback.
|
|
|
|
| 3 |
import subprocess
|
| 4 |
|
| 5 |
# Title and introduction
|
| 6 |
+
st.title("Muscle Memory")
|
| 7 |
+
|
| 8 |
+
import av
|
| 9 |
+
from streamlit_webrtc import webrtc_streamer, VideoProcessorBase
|
| 10 |
+
|
| 11 |
+
class VideoProcessor(VideoProcessorBase):
|
| 12 |
+
def recv(self, frame):
|
| 13 |
+
image = frame.to_ndarray(format="bgr24")
|
| 14 |
+
# Perform OpenCV processing here
|
| 15 |
+
return av.VideoFrame.from_ndarray(image, format="bgr24")
|
| 16 |
+
|
| 17 |
+
st.header("Webcam Feed")
|
| 18 |
+
webrtc_streamer(key="example", video_processor_factory=VideoProcessor)
|
| 19 |
+
|
| 20 |
st.markdown("""
|
| 21 |
Welcome to the **Workout Tracker App**!
|
| 22 |
Select your desired workout below, and the app will guide you through the exercise with real-time feedback.
|