Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -138,7 +138,7 @@ if uploaded_file is not None:
|
|
| 138 |
if st.button("Submit"):
|
| 139 |
try:
|
| 140 |
audio_to_spectrogram("uploaded_audio.wav")
|
| 141 |
-
st.image("spectrogram.png", caption="Mel Spectrogram of the uploaded audio file",
|
| 142 |
speaker, probability, _ = classify_speaker("uploaded_audio.wav")
|
| 143 |
gender, gen_probability = classify_gender("uploaded_audio.wav")
|
| 144 |
|
|
@@ -170,7 +170,7 @@ if recorded_audio:
|
|
| 170 |
|
| 171 |
# Process the recorded audio
|
| 172 |
audio_to_spectrogram("recorded_audio.wav")
|
| 173 |
-
st.image("spectrogram.png", caption="Mel Spectrogram of the
|
| 174 |
|
| 175 |
# Classify the speaker and gender
|
| 176 |
speaker, probability, wav_file = classify_speaker("recorded_audio.wav")
|
|
|
|
| 138 |
if st.button("Submit"):
|
| 139 |
try:
|
| 140 |
audio_to_spectrogram("uploaded_audio.wav")
|
| 141 |
+
st.image("spectrogram.png", caption="Mel Spectrogram of the uploaded audio file", use_container_width=True)
|
| 142 |
speaker, probability, _ = classify_speaker("uploaded_audio.wav")
|
| 143 |
gender, gen_probability = classify_gender("uploaded_audio.wav")
|
| 144 |
|
|
|
|
| 170 |
|
| 171 |
# Process the recorded audio
|
| 172 |
audio_to_spectrogram("recorded_audio.wav")
|
| 173 |
+
st.image("spectrogram.png", caption="Mel Spectrogram of the uploaded audio file", use_container_width=True)
|
| 174 |
|
| 175 |
# Classify the speaker and gender
|
| 176 |
speaker, probability, wav_file = classify_speaker("recorded_audio.wav")
|