Update app.py
Browse files
app.py
CHANGED
@@ -11,11 +11,11 @@ def infer(audio):
|
|
11 |
#print(gpt_response)
|
12 |
audio_response = tts(gpt_response[1], "English Text", "English Accent", "English Speaker's Voice", fn_index=0)
|
13 |
#image = Image.open(r"wise_woman_portrait.png")
|
14 |
-
|
15 |
-
return audio_response
|
16 |
|
17 |
inputs = gr.Audio(source="microphone",type="filepath")
|
18 |
-
outputs = [gr.Audio()]
|
19 |
|
20 |
demo = gr.Interface(fn=infer, inputs=inputs, outputs=outputs)
|
21 |
demo.launch()
|
|
|
11 |
#print(gpt_response)
|
12 |
audio_response = tts(gpt_response[1], "English Text", "English Accent", "English Speaker's Voice", fn_index=0)
|
13 |
#image = Image.open(r"wise_woman_portrait.png")
|
14 |
+
portrait = talking_face("wise_woman_portrait.png", audio_response, fn_index=0)
|
15 |
+
return audio_response, portrait
|
16 |
|
17 |
inputs = gr.Audio(source="microphone",type="filepath")
|
18 |
+
outputs = [gr.Audio(), gr.Video()]
|
19 |
|
20 |
demo = gr.Interface(fn=infer, inputs=inputs, outputs=outputs)
|
21 |
demo.launch()
|