Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -93,7 +93,7 @@ def transcribe(apikey, upload, audio, choice1):
|
|
93 |
|
94 |
output_1 = gr.Textbox(label="Speech to Text")
|
95 |
output_2 = gr.Textbox(label="ChatGPT Output")
|
96 |
-
output_3 = gr.Audio(label="Audio")
|
97 |
|
98 |
gr.Interface(
|
99 |
title = '🥳💬💕 - TalktoAI,随时随地,谈天说地!',
|
@@ -101,7 +101,7 @@ gr.Interface(
|
|
101 |
description = "🤖 - 让有人文关怀的AI造福每一个人!AI向善,文明璀璨!TalktoAI - Enable the future!",
|
102 |
fn=transcribe,
|
103 |
inputs=[
|
104 |
-
gr.Textbox(lines=1, label = "请填写您的
|
105 |
gr.inputs.Audio(source="upload", label = "请上传您喜欢的声音(wav文件)", type="filepath"),
|
106 |
gr.inputs.Audio(source="microphone", type="filepath"),
|
107 |
gr.Radio(["TOEFL", "Therapist", "Alice"], label="TOEFL Examiner, Therapist Tina, or Assistant Alice?"),
|
|
|
93 |
|
94 |
output_1 = gr.Textbox(label="Speech to Text")
|
95 |
output_2 = gr.Textbox(label="ChatGPT Output")
|
96 |
+
output_3 = gr.Audio(label="Audio with Custom Voice")
|
97 |
|
98 |
gr.Interface(
|
99 |
title = '🥳💬💕 - TalktoAI,随时随地,谈天说地!',
|
|
|
101 |
description = "🤖 - 让有人文关怀的AI造福每一个人!AI向善,文明璀璨!TalktoAI - Enable the future!",
|
102 |
fn=transcribe,
|
103 |
inputs=[
|
104 |
+
gr.Textbox(lines=1, label = "请填写您的OpenAI-API-key"),
|
105 |
gr.inputs.Audio(source="upload", label = "请上传您喜欢的声音(wav文件)", type="filepath"),
|
106 |
gr.inputs.Audio(source="microphone", type="filepath"),
|
107 |
gr.Radio(["TOEFL", "Therapist", "Alice"], label="TOEFL Examiner, Therapist Tina, or Assistant Alice?"),
|