Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,18 +1,17 @@
|
|
1 |
import os
|
2 |
-
os.system('pip install gradio==2.3.0a0')
|
3 |
os.system('pip install voicefixer --upgrade')
|
4 |
from voicefixer import VoiceFixer
|
5 |
import gradio as gr
|
6 |
voicefixer = VoiceFixer()
|
7 |
def inference(audio,mode):
|
8 |
-
voicefixer.restore(input=audio
|
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="
|
15 |
-
outputs = gr.outputs.Audio(type="
|
16 |
|
17 |
|
18 |
title = "Voice Fixer"
|
|
|
1 |
import os
|
|
|
2 |
os.system('pip install voicefixer --upgrade')
|
3 |
from voicefixer import VoiceFixer
|
4 |
import gradio as gr
|
5 |
voicefixer = VoiceFixer()
|
6 |
def inference(audio,mode):
|
7 |
+
voicefixer.restore(input=audio, # input wav file path
|
8 |
output="output.wav", # output wav file path
|
9 |
cuda=False, # whether to use gpu acceleration
|
10 |
mode = int(mode)) # You can try out mode 0, 1 to find out the best result
|
11 |
return 'output.wav'
|
12 |
|
13 |
+
inputs = [gr.inputs.Audio(type="filepath", label="Input Audio"),gr.inputs.Radio(choices=['0','1','2'], type="value", default='0', label='mode')]
|
14 |
+
outputs = gr.outputs.Audio(type="filepath",label="Output Audio")
|
15 |
|
16 |
|
17 |
title = "Voice Fixer"
|