Update app.py
Browse files
app.py
CHANGED
@@ -237,4 +237,19 @@ gr.Interface(
|
|
237 |
outputs=[
|
238 |
gr.Textbox(label="Speech to Text"), gr.Textbox(label="ChatGPT Output"), gr.Audio(label="Audio with Custom Voice"),
|
239 |
],
|
240 |
-
).launch(show_error = True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
237 |
outputs=[
|
238 |
gr.Textbox(label="Speech to Text"), gr.Textbox(label="ChatGPT Output"), gr.Audio(label="Audio with Custom Voice"),
|
239 |
],
|
240 |
+
).launch(show_error = True)
|
241 |
+
|
242 |
+
demo = gr.Interface(
|
243 |
+
fn=greet,
|
244 |
+
inputs=[
|
245 |
+
gr.Textbox(lines=1, label = "请填写您的OpenAI-API-key"),
|
246 |
+
gr.Audio(source="microphone", label='在这里进行对话', type="filepath"),
|
247 |
+
gr.Audio(source="upload", type="filepath", label='请上传您喜欢的声音(wav文件)').
|
248 |
+
gr.Audio(source="microphone", type="filepath", label = "请用麦克风上传您喜欢的声音,与wav文件二选一即可"),
|
249 |
+
],
|
250 |
+
outputs=[gr.Textbox(label="Speech to Text"), gr.Textbox(label="ChatGPT Output"), "audio"],
|
251 |
+
title="🥳💬💕 - TalktoAI,随时随地,谈天说地!"
|
252 |
+
theme="huggingface",
|
253 |
+
description = "🤖 - 让有人文关怀的AI造福每一个人!AI向善,文明璀璨!TalktoAI - Enable the future!",
|
254 |
+
)
|
255 |
+
demo.launch(show_error = True)
|