Kevin676 commited on
Commit
cd2b534
1 Parent(s): 43546b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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
- # title="TalktoAI,随时随地,谈天说地!"
232
  )
233
- demo.launch(show_error = True)
 
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()