Update app.py
Browse files
app.py
CHANGED
@@ -4,9 +4,9 @@ whisper_to_gpt = gr.Blocks.load(name="spaces/fffiloni/whisper-to-chatGPT")
|
|
4 |
tts = gr.Interface.load(name="spaces/StevenLimcorn/fastspeech2-TTS")
|
5 |
|
6 |
def infer(audio):
|
7 |
-
gpt_response = whisper_to_gpt(audio, "translate", fn_index=
|
8 |
print(gpt_response)
|
9 |
-
audio_response = tts(gpt_response, "Fastspeech2 + Melgan", fn_index=0)
|
10 |
return audio_response
|
11 |
|
12 |
inputs = gr.Audio(source="microphone",type="filepath")
|
|
|
4 |
tts = gr.Interface.load(name="spaces/StevenLimcorn/fastspeech2-TTS")
|
5 |
|
6 |
def infer(audio):
|
7 |
+
gpt_response = whisper_to_gpt(audio, "translate", fn_index=0)
|
8 |
print(gpt_response)
|
9 |
+
audio_response = tts(gpt_response[1], "Fastspeech2 + Melgan", fn_index=0)
|
10 |
return audio_response
|
11 |
|
12 |
inputs = gr.Audio(source="microphone",type="filepath")
|