Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -50,11 +50,11 @@ with gr.Blocks() as demo:
|
|
50 |
with gr.Column():
|
51 |
user_audio = gr.Audio(source="microphone", type="filepath", label="Input Phrase")
|
52 |
submit_btn = gr.Button(value="Transcribe")
|
53 |
-
chat_log = gr.Text(label="Chat Log")
|
54 |
with gr.Column():
|
55 |
user_transcript = gr.Text(label="User Transcript")
|
56 |
gpt_transcript = gr.Text(label="GPT Transcript")
|
57 |
gpt_voice = gr.Audio(label="Voice Response")
|
|
|
58 |
submit_btn.click(transcribe, inputs=user_audio, outputs=user_transcript)
|
59 |
user_transcript.change(botResponse, inputs=user_transcript, outputs=gpt_transcript)
|
60 |
gpt_transcript.change(giveVoice, inputs=gpt_transcript, outputs=gpt_voice)
|
|
|
50 |
with gr.Column():
|
51 |
user_audio = gr.Audio(source="microphone", type="filepath", label="Input Phrase")
|
52 |
submit_btn = gr.Button(value="Transcribe")
|
|
|
53 |
with gr.Column():
|
54 |
user_transcript = gr.Text(label="User Transcript")
|
55 |
gpt_transcript = gr.Text(label="GPT Transcript")
|
56 |
gpt_voice = gr.Audio(label="Voice Response")
|
57 |
+
chat_log = gr.Text(label="Chat Log")
|
58 |
submit_btn.click(transcribe, inputs=user_audio, outputs=user_transcript)
|
59 |
user_transcript.change(botResponse, inputs=user_transcript, outputs=gpt_transcript)
|
60 |
gpt_transcript.change(giveVoice, inputs=gpt_transcript, outputs=gpt_voice)
|