Ahsen Khaliq commited on
Commit
359933c
1 Parent(s): 9569c96

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,10 +8,10 @@ def inference(audio,mode):
8
  voicefixer.restore(input=audio.name, # input wav file path
9
  output="output.wav", # output wav file path
10
  cuda=False, # whether to use gpu acceleration
11
- mode = mode) # You can try out mode 0, 1 to find out the best result
12
  return 'output.wav'
13
 
14
- inputs = [gr.inputs.Audio(type="file", label="Input Audio"),gr.inputs.Slider(minimum=0, maximum=1, step=0.1, default=0, label='mode')]
15
  outputs = gr.outputs.Audio(type="file",label="Output Audio")
16
 
17
 
 
8
  voicefixer.restore(input=audio.name, # input wav file path
9
  output="output.wav", # output wav file path
10
  cuda=False, # whether to use gpu acceleration
11
+ mode = int(mode)) # You can try out mode 0, 1 to find out the best result
12
  return 'output.wav'
13
 
14
+ inputs = [gr.inputs.Audio(type="file", label="Input Audio"),gr.inputs.Radio(choices=['0','1','2'], type="value", default='0', label='mode')]
15
  outputs = gr.outputs.Audio(type="file",label="Output Audio")
16
 
17