Hendrik Schroeter commited on
Commit
59a7cff
1 Parent(s): e46dd10
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -147,7 +147,7 @@ def demo_fn(speech_upl: str, noise_type: str, snr: int):
147
  enh_im = spec_im(enhanced, sr=sr, figure=fig_enh, ax=ax_enh)
148
  noisy_wav = gradio.make_waveform(noisy_fn, bar_count=200)
149
  enh_wav = gradio.make_waveform(enhanced_fn, bar_count=200)
150
- return noisy_wav, noisy_im, enh_wav, enh_im
151
 
152
 
153
  def specshow(
@@ -265,10 +265,10 @@ inputs = [
265
  ),
266
  ]
267
  outputs = [
268
- gradio.Video(type="filepath", label="Noisy audio"),
269
  gradio.Image(label="Noisy spectrogram"),
270
  gradio.Video(type="filepath", label="Noisy audio"),
271
  gradio.Image(label="Enhanced spectrogram"),
 
272
  ]
273
  description = "This demo denoises audio files using DeepFilterNet. Try it with your own voice!"
274
  iface = gradio.Interface(
 
147
  enh_im = spec_im(enhanced, sr=sr, figure=fig_enh, ax=ax_enh)
148
  noisy_wav = gradio.make_waveform(noisy_fn, bar_count=200)
149
  enh_wav = gradio.make_waveform(enhanced_fn, bar_count=200)
150
+ return noisy_im, noisy_wav, enh_im, enh_wav
151
 
152
 
153
  def specshow(
 
265
  ),
266
  ]
267
  outputs = [
 
268
  gradio.Image(label="Noisy spectrogram"),
269
  gradio.Video(type="filepath", label="Noisy audio"),
270
  gradio.Image(label="Enhanced spectrogram"),
271
+ gradio.Video(type="filepath", label="Enhanced audio"),
272
  ]
273
  description = "This demo denoises audio files using DeepFilterNet. Try it with your own voice!"
274
  iface = gradio.Interface(