Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,6 +19,15 @@ pose = mp_pose.Pose(static_image_mode=False, min_detection_confidence=0.5, min_t
|
|
| 19 |
def index():
|
| 20 |
return render_template('index.html')
|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
def process_video(video_path):
|
| 23 |
cap = cv2.VideoCapture(video_path)
|
| 24 |
frame_count = int(cap.get(cv2.CAP_PROP_FRAME_COUNT))
|
|
|
|
| 19 |
def index():
|
| 20 |
return render_template('index.html')
|
| 21 |
|
| 22 |
+
@app.route('/web_app')
|
| 23 |
+
def web_app():
|
| 24 |
+
return render_template('holistic.html')
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
@app.route('/video_app')
|
| 28 |
+
def video_app():
|
| 29 |
+
return render_template('video_app.html')
|
| 30 |
+
|
| 31 |
def process_video(video_path):
|
| 32 |
cap = cv2.VideoCapture(video_path)
|
| 33 |
frame_count = int(cap.get(cv2.CAP_PROP_FRAME_COUNT))
|