MorenoLaQuatra
commited on
Commit
•
0aab0ed
1
Parent(s):
1f0b3af
Solving errors in demo
Browse files- .DS_Store +0 -0
- ._.DS_Store +0 -0
- app.py +3 -3
- data/._logo.png +0 -0
- data/logo.png +0 -0
- requirements.txt +8 -0
.DS_Store
ADDED
Binary file (6.15 kB). View file
|
|
._.DS_Store
ADDED
Binary file (4.1 kB). View file
|
|
app.py
CHANGED
@@ -31,7 +31,7 @@ from streamlit_bokeh_events import streamlit_bokeh_events
|
|
31 |
from webcam import webcam
|
32 |
|
33 |
## Global Variables
|
34 |
-
MP3_ROOT_PATH = "
|
35 |
SPECTROGRAMS_PATH = "sample_spectrograms/"
|
36 |
|
37 |
IMAGE_SIZE = 224
|
@@ -241,7 +241,7 @@ class CLIPDemo:
|
|
241 |
for match in matches:
|
242 |
filename = os.path.split(match)[1]
|
243 |
filename = int(filename.replace(".jpeg", ""))
|
244 |
-
audio_path = MP3_ROOT_PATH + "/" + f"{filename:06d}"
|
245 |
songs_path.append(audio_path)
|
246 |
return songs_path
|
247 |
|
@@ -436,7 +436,7 @@ if selected == "Audio":
|
|
436 |
if selected == "Camera":
|
437 |
# st.title(f"You have selected {selected}")
|
438 |
#draw_camera("camera", plot=True)
|
439 |
-
|
440 |
|
441 |
# with st.sidebar:
|
442 |
# draw_sidebar("sidebar")
|
|
|
31 |
from webcam import webcam
|
32 |
|
33 |
## Global Variables
|
34 |
+
MP3_ROOT_PATH = "sample_mp3/"
|
35 |
SPECTROGRAMS_PATH = "sample_spectrograms/"
|
36 |
|
37 |
IMAGE_SIZE = 224
|
|
|
241 |
for match in matches:
|
242 |
filename = os.path.split(match)[1]
|
243 |
filename = int(filename.replace(".jpeg", ""))
|
244 |
+
audio_path = MP3_ROOT_PATH + "/" + f"{filename:06d}"
|
245 |
songs_path.append(audio_path)
|
246 |
return songs_path
|
247 |
|
|
|
436 |
if selected == "Camera":
|
437 |
# st.title(f"You have selected {selected}")
|
438 |
#draw_camera("camera", plot=True)
|
439 |
+
pass
|
440 |
|
441 |
# with st.sidebar:
|
442 |
# draw_sidebar("sidebar")
|
data/._logo.png
ADDED
data/logo.png
ADDED
requirements.txt
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
transformers
|
2 |
+
datasets
|
3 |
+
streamlit
|
4 |
+
st_btn_select
|
5 |
+
streamlit_option_menu
|
6 |
+
bokeh
|
7 |
+
streamlit_bokeh_events
|
8 |
+
streamlit-webcam-example
|