Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -96,13 +96,13 @@ with gr.Blocks() as demo:
|
|
96 |
user_audio = gr.Audio(source="microphone", type="filepath", label="Input Phrase")
|
97 |
submit_btn = gr.Button(value="Transcribe Audio")
|
98 |
submit_btn2 = gr.Button(value="Submit Text")
|
99 |
-
|
100 |
with gr.Column(scale=2):
|
101 |
user_transcript = gr.Text(label="Audio Translation", interactive=False)
|
102 |
-
|
103 |
gpt_transcript = gr.Text(label="Chat Transcript")
|
104 |
submit_btn.click(transcribe, user_audio, user_transcript)
|
105 |
-
|
106 |
user_transcript.change(botResponse, [user_transcript, messages], gpt_transcript)
|
107 |
gpt_transcript.change(giveVoice, messages, gpt_voice)
|
108 |
|
|
|
96 |
user_audio = gr.Audio(source="microphone", type="filepath", label="Input Phrase")
|
97 |
submit_btn = gr.Button(value="Transcribe Audio")
|
98 |
submit_btn2 = gr.Button(value="Submit Text")
|
99 |
+
#DGGgpt_voice = gr.Audio(label="Consejero")
|
100 |
with gr.Column(scale=2):
|
101 |
user_transcript = gr.Text(label="Audio Translation", interactive=False)
|
102 |
+
#DGGuser_text = gr.Text(label="Text Input")
|
103 |
gpt_transcript = gr.Text(label="Chat Transcript")
|
104 |
submit_btn.click(transcribe, user_audio, user_transcript)
|
105 |
+
#DGGsubmit_btn2.click(botResponse, [user_text, messages], gpt_transcript)
|
106 |
user_transcript.change(botResponse, [user_transcript, messages], gpt_transcript)
|
107 |
gpt_transcript.change(giveVoice, messages, gpt_voice)
|
108 |
|