Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ tts = gr.Interface.load(name="spaces/StevenLimcorn/fastspeech2-TTS")
|
|
7 |
talking_face = gr.Blocks.load(name="spaces/fffiloni/one-shot-talking-face", api_key=token)
|
8 |
|
9 |
def infer(audio):
|
10 |
-
gpt_response = whisper_to_gpt(
|
11 |
#print(gpt_response)
|
12 |
audio_response = tts(gpt_response[1], "Fastspeech2 + Melgan", fn_index=0)
|
13 |
#image = Image.open(r"wise_woman_portrait.png")
|
|
|
7 |
talking_face = gr.Blocks.load(name="spaces/fffiloni/one-shot-talking-face", api_key=token)
|
8 |
|
9 |
def infer(audio):
|
10 |
+
gpt_response = whisper_to_gpt(audio, "translate", fn_index=0)
|
11 |
#print(gpt_response)
|
12 |
audio_response = tts(gpt_response[1], "Fastspeech2 + Melgan", fn_index=0)
|
13 |
#image = Image.open(r"wise_woman_portrait.png")
|