Spaces:
Sleeping
Sleeping
Commit
·
8e041c6
1
Parent(s):
20fdd1b
trying to install audio dependency
Browse files
app.py
CHANGED
|
@@ -2,6 +2,10 @@
|
|
| 2 |
Streamlit application for real-time gender detection from audio input.
|
| 3 |
Uses wav2vec2 model to analyze voice and predict speaker gender.
|
| 4 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
import streamlit as st
|
| 7 |
import pyaudio
|
|
|
|
| 2 |
Streamlit application for real-time gender detection from audio input.
|
| 3 |
Uses wav2vec2 model to analyze voice and predict speaker gender.
|
| 4 |
"""
|
| 5 |
+
import os
|
| 6 |
+
|
| 7 |
+
# Install system dependencies on startup
|
| 8 |
+
os.system("apt-get update && apt-get install -y portaudio19-dev")
|
| 9 |
|
| 10 |
import streamlit as st
|
| 11 |
import pyaudio
|