Spaces:
Configuration error
Configuration error
Update app.py
Browse files
app.py
CHANGED
@@ -231,8 +231,6 @@ def greet(apikey, Voicetoclone, VoiceMicrophone, audio, choice1):
|
|
231 |
cuda=True, # whether to use gpu acceleration
|
232 |
mode = 0) # You can try out mode 0, 1 to find out the best result
|
233 |
|
234 |
-
|
235 |
-
|
236 |
noisy = enhance_model.load_audio(
|
237 |
"audio1.wav"
|
238 |
).unsqueeze(0)
|
@@ -253,9 +251,9 @@ gr.Interface(
|
|
253 |
fn=greet,
|
254 |
inputs=[
|
255 |
gr.Textbox(lines=1, label = "请填写您的OpenAI-API-key"),
|
256 |
-
gr.
|
257 |
-
gr.
|
258 |
-
gr.
|
259 |
gr.Radio(["TOEFL", "Therapist", "Alice"], label="TOEFL Examiner, Therapist Tina, or Assistant Alice?"),
|
260 |
],
|
261 |
outputs=[
|
|
|
231 |
cuda=True, # whether to use gpu acceleration
|
232 |
mode = 0) # You can try out mode 0, 1 to find out the best result
|
233 |
|
|
|
|
|
234 |
noisy = enhance_model.load_audio(
|
235 |
"audio1.wav"
|
236 |
).unsqueeze(0)
|
|
|
251 |
fn=greet,
|
252 |
inputs=[
|
253 |
gr.Textbox(lines=1, label = "请填写您的OpenAI-API-key"),
|
254 |
+
gr.Audio(source="upload", label = "请上传您喜欢的声音(wav文件)", type="filepath"),
|
255 |
+
gr.Audio(source="microphone", label = "请用语音上传您喜欢的声音,语音和文件上传二选一即可", type="filepath"),
|
256 |
+
gr.Audio(source="microphone", label = "请开始对话吧", type="filepath"),
|
257 |
gr.Radio(["TOEFL", "Therapist", "Alice"], label="TOEFL Examiner, Therapist Tina, or Assistant Alice?"),
|
258 |
],
|
259 |
outputs=[
|