hwberry2 commited on
Commit
9d08bac
1 Parent(s): 83addd5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -22,13 +22,16 @@ def transcribe(audio):
22
 
23
  # Create a Gradio App using Blocks
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 respond, clear your last recording and resubmit.
31
  """)
 
 
32
  # First message as instructions to OpenAI
33
  # Establishes a State object to create a
34
  # unique state for each user and on reload
@@ -93,9 +96,6 @@ with gr.Blocks() as demo:
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)
 
22
 
23
  # Create a Gradio App using Blocks
24
  with gr.Blocks() as demo:
25
+ with gr.Accordion("Open for Instructions"):
26
+ gr.Markdown(
27
  """
28
  # Welcome to the Virtual Therapist Chat Bot!
29
  * Tell the therapist your problems, by recording your query.
30
  * Submit your query, and follow the chat or listen to the Therapists advice.
31
  * When you are ready to respond, clear your last recording and resubmit.
32
  """)
33
+
34
+
35
  # First message as instructions to OpenAI
36
  # Establishes a State object to create a
37
  # unique state for each user and on reload
 
96
  with gr.Column(scale=2):
97
  user_transcript = gr.Text(label="User Transcript")
98
  gpt_transcript = gr.Text(label="Chat Transcript")
 
 
 
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)