Gregory2041 commited on
Commit
8984d2a
1 Parent(s): 3fc50a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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", use_column_width="auto", width=200)
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 recorded audio file", use_column_width="auto", width=200)
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")