Spaces:
Running
Running
Commit
·
1fe0c08
1
Parent(s):
622a5d0
improvements
Browse files- README.md +0 -14
- app.py +1 -2
- packages.txt +2 -1
README.md
CHANGED
@@ -1,14 +0,0 @@
|
|
1 |
-
---
|
2 |
-
title: Gender Detection
|
3 |
-
emoji: 🚀
|
4 |
-
colorFrom: gray
|
5 |
-
colorTo: indigo
|
6 |
-
sdk: streamlit
|
7 |
-
sdk_version: 1.42.0
|
8 |
-
app_file: app.py
|
9 |
-
pinned: false
|
10 |
-
license: apache-2.0
|
11 |
-
short_description: real time gender detection app
|
12 |
-
---
|
13 |
-
|
14 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app.py
CHANGED
@@ -41,7 +41,7 @@ def see_audio_options():
|
|
41 |
p = pyaudio.PyAudio()
|
42 |
for i in range(p.get_device_count()):
|
43 |
info = p.get_device_info_by_index(i)
|
44 |
-
|
45 |
|
46 |
see_audio_options()
|
47 |
|
@@ -84,7 +84,6 @@ def start_listening():
|
|
84 |
rate=RATE,
|
85 |
input=True,
|
86 |
frames_per_buffer=CHUNK,
|
87 |
-
device_index=0
|
88 |
)
|
89 |
|
90 |
st.session_state['stream'] = stream
|
|
|
41 |
p = pyaudio.PyAudio()
|
42 |
for i in range(p.get_device_count()):
|
43 |
info = p.get_device_info_by_index(i)
|
44 |
+
logging.info(f"Device {i}: {info['name']}")
|
45 |
|
46 |
see_audio_options()
|
47 |
|
|
|
84 |
rate=RATE,
|
85 |
input=True,
|
86 |
frames_per_buffer=CHUNK,
|
|
|
87 |
)
|
88 |
|
89 |
st.session_state['stream'] = stream
|
packages.txt
CHANGED
@@ -1 +1,2 @@
|
|
1 |
-
portaudio19-dev
|
|
|
|
1 |
+
portaudio19-dev
|
2 |
+
alsa-utils
|