Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
from turtle import title
|
2 |
import gradio as gr
|
3 |
|
4 |
import git
|
@@ -226,8 +226,8 @@ def greet(Text2, audio, Voicetoclone,VoiceMicrophone):
|
|
226 |
|
227 |
demo = gr.Interface(
|
228 |
fn=greet,
|
229 |
-
inputs=[gr.inputs.Textbox(label='请输入您的openai.api_key'), gr.Audio(source="microphone", label='在这里进行对话', type="filepath"), gr.Audio(type="filepath", source="upload",label='Please upload a voice to clone (max. 30mb)'), gr.Audio(source="microphone", type="filepath", streaming=True)],
|
230 |
outputs=["text", "text", "audio"]
|
231 |
-
|
232 |
)
|
233 |
-
demo.launch(
|
|
|
1 |
+
#from turtle import title
|
2 |
import gradio as gr
|
3 |
|
4 |
import git
|
|
|
226 |
|
227 |
demo = gr.Interface(
|
228 |
fn=greet,
|
229 |
+
inputs=[gr.inputs.Textbox(label='请输入您的openai.api_key', visible=False), gr.Audio(source="microphone", label='在这里进行对话', type="filepath"), gr.Audio(type="filepath", source="upload",label='Please upload a voice to clone (max. 30mb)'), gr.Audio(source="microphone", type="filepath", streaming=True)],
|
230 |
outputs=["text", "text", "audio"]
|
231 |
+
title="🥳💬💕 - TalktoAI,随时随地,谈天说地!"
|
232 |
)
|
233 |
+
demo.launch()
|