Spaces:
Sleeping
Sleeping
Nico8800
commited on
Commit
·
d296c34
1
Parent(s):
5e9cebc
add first containers: voice recorder and video display
Browse files
app.py
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
from moviepy.editor import AudioClip
|
| 3 |
+
import tempfile
|
| 4 |
+
import os
|
| 5 |
+
from st_audiorec import st_audiorec
|
| 6 |
+
|
| 7 |
+
st.set_page_config(layout="wide", initial_sidebar_state="collapsed")
|
| 8 |
+
# Create two columns
|
| 9 |
+
col1, col2 = st.columns(2)
|
| 10 |
+
|
| 11 |
+
# First column containers
|
| 12 |
+
with col1:
|
| 13 |
+
st.subheader("Audio Recorder")
|
| 14 |
+
wav_audio_data = st_audiorec()
|
| 15 |
+
|
| 16 |
+
st.subheader("LLM answering")
|
| 17 |
+
# Add your content here
|
| 18 |
+
|
| 19 |
+
st.subheader("Movement Analysis")
|
| 20 |
+
# Add your content here
|
| 21 |
+
|
| 22 |
+
# Second column containers
|
| 23 |
+
with col2:
|
| 24 |
+
st.subheader("Sports Agenda")
|
| 25 |
+
# Add your content here
|
| 26 |
+
|
| 27 |
+
st.subheader("Video Analysis")
|
| 28 |
+
video_path = "data/video/temp.mp4"
|
| 29 |
+
st.video(video_path)
|
| 30 |
+
|
| 31 |
+
st.subheader("Graph Displayer")
|
| 32 |
+
# Add your content here
|