khalida1wwin commited on
Commit
052ec28
1 Parent(s): 2aba82b

update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -191,7 +191,7 @@ audio_output_prediction, sample_rate, min_duration, frame_length, hop_length_fra
191
 
192
  def denoise_audio(audioName):
193
  sr, data = audioName
194
- sf.write("temp.wav",data, 44100)
195
  testNo = "temp"
196
  audio_dir_prediction = os.path.abspath("/")+ str(testNo) +".wav"
197
  sample_rate, data = audioName[0], audioName[1]
@@ -230,8 +230,7 @@ examples = [
230
 
231
  iface = gr.Interface(fn = denoise_audio,
232
  inputs = 'audio',
233
- outputs = 'audio',
234
- verbose = True,
235
  title = 'audio to denoised Audio Application',
236
  description = 'A simple application to denoise audio speech usinf UNet deep learning model. Upload your own audio, or click one of the examples to load them.',
237
  article =
 
191
 
192
  def denoise_audio(audioName):
193
  sr, data = audioName
194
+ sf.write("temp.wav",data, sr)
195
  testNo = "temp"
196
  audio_dir_prediction = os.path.abspath("/")+ str(testNo) +".wav"
197
  sample_rate, data = audioName[0], audioName[1]
 
230
 
231
  iface = gr.Interface(fn = denoise_audio,
232
  inputs = 'audio',
233
+ outputs = 'audio',
 
234
  title = 'audio to denoised Audio Application',
235
  description = 'A simple application to denoise audio speech usinf UNet deep learning model. Upload your own audio, or click one of the examples to load them.',
236
  article =