Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
•
359933c
1
Parent(s):
9569c96
Update app.py
Browse files
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.
|
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 |
|