Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -58,8 +58,7 @@ def giveVoice(bot_message):
|
|
58 |
dir = os.getcwd()
|
59 |
new_path = os.path.join(dir, "temp.mp3")
|
60 |
|
61 |
-
|
62 |
-
return "test"
|
63 |
|
64 |
|
65 |
|
@@ -73,10 +72,9 @@ with gr.Blocks() as demo:
|
|
73 |
with gr.Column():
|
74 |
#gpt_response = gr.Audio(label="Voice Response")
|
75 |
gpt_transcript = gr.Text(label="Generate Transcript")
|
76 |
-
|
77 |
-
gpt_response = gr.Audio(label="Voice Response")
|
78 |
submit_btn.click(transcribe, inputs=user_audio, outputs=gpt_transcript)
|
79 |
-
gpt_transcript.change(giveVoice, inputs=gpt_transcript, outputs=
|
80 |
|
81 |
|
82 |
|
|
|
58 |
dir = os.getcwd()
|
59 |
new_path = os.path.join(dir, "temp.mp3")
|
60 |
|
61 |
+
return new_path
|
|
|
62 |
|
63 |
|
64 |
|
|
|
72 |
with gr.Column():
|
73 |
#gpt_response = gr.Audio(label="Voice Response")
|
74 |
gpt_transcript = gr.Text(label="Generate Transcript")
|
75 |
+
gpt_voice = gr.Audio(label="Voice Response")
|
|
|
76 |
submit_btn.click(transcribe, inputs=user_audio, outputs=gpt_transcript)
|
77 |
+
gpt_transcript.change(giveVoice, inputs=gpt_transcript, outputs=gpt_voice)
|
78 |
|
79 |
|
80 |
|