1mpreccable commited on
Commit
ac535dc
·
verified ·
1 Parent(s): 94ab37c

Delete interface_pages/yoga_position_from_stream.py

Browse files
interface_pages/yoga_position_from_stream.py DELETED
@@ -1,30 +0,0 @@
1
- import gradio as gr
2
-
3
- def yoga_position_from_stream():
4
- def download_video(video_path):
5
- if video_path:
6
- return video_path
7
- return None
8
-
9
- with gr.Column() as yoga_stream:
10
- gr.Markdown("# Yoga from Stream")
11
- gr.Markdown(
12
- "Stream live yoga sessions and practice along with our expert instructors."
13
- )
14
-
15
- # Create a video feed without 'type' argument
16
- video_feed = gr.Video(source="webcam", streaming=True, interactive=True)
17
- download_button = gr.Button("Download Recorded Video")
18
-
19
- download_button.click(
20
- download_video,
21
- inputs=[video_feed],
22
- outputs=[gr.File()],
23
- )
24
-
25
- return yoga_stream
26
-
27
- if __name__ == "__main__":
28
- with gr.Blocks() as demo:
29
- yoga_position_from_stream()
30
- demo.launch()