Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -24,9 +24,10 @@ def transcribe(audio):
|
|
24 |
with gr.Blocks() as demo:
|
25 |
gr.Markdown(
|
26 |
"""
|
27 |
-
# Welcome to
|
28 |
-
Tell the therapist your
|
29 |
Submit your query, and follow the chat or listen to the Therapists advice.
|
|
|
30 |
""")
|
31 |
# First message as instructions to OpenAI
|
32 |
# Establishes a State object to create a
|
@@ -92,8 +93,9 @@ with gr.Blocks() as demo:
|
|
92 |
with gr.Column(scale=2):
|
93 |
user_transcript = gr.Text(label="User Transcript")
|
94 |
gpt_transcript = gr.Text(label="Chat Transcript")
|
|
|
95 |
with gr.Accordion("Open for Instructions"):
|
96 |
-
gr.Markdown("
|
97 |
submit_btn.click(transcribe, user_audio, user_transcript)
|
98 |
user_transcript.change(botResponse, [user_transcript, messages], gpt_transcript)
|
99 |
gpt_transcript.change(giveVoice, messages, gpt_voice)
|
|
|
24 |
with gr.Blocks() as demo:
|
25 |
gr.Markdown(
|
26 |
"""
|
27 |
+
# Welcome to the Virtual Therapist Chat Bot!
|
28 |
+
Tell the therapist your problems, by recording your query.
|
29 |
Submit your query, and follow the chat or listen to the Therapists advice.
|
30 |
+
When you are ready to resond, clear your last recording and resubmit.
|
31 |
""")
|
32 |
# First message as instructions to OpenAI
|
33 |
# Establishes a State object to create a
|
|
|
93 |
with gr.Column(scale=2):
|
94 |
user_transcript = gr.Text(label="User Transcript")
|
95 |
gpt_transcript = gr.Text(label="Chat Transcript")
|
96 |
+
with gr.Row():
|
97 |
with gr.Accordion("Open for Instructions"):
|
98 |
+
gr.Markdown("Instructions go here")
|
99 |
submit_btn.click(transcribe, user_audio, user_transcript)
|
100 |
user_transcript.change(botResponse, [user_transcript, messages], gpt_transcript)
|
101 |
gpt_transcript.change(giveVoice, messages, gpt_voice)
|