commonman commited on
Commit
9dad127
·
1 Parent(s): 1de9657

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -26,15 +26,15 @@ def transcribe(audio):
26
  with gr.Blocks() as demo:
27
  gr.Markdown(
28
  """
29
- # Welcome to the Virtual Therapist Chat Bot!
30
  """
31
  )
32
  with gr.Accordion("Click for Instructions:"):
33
  gr.Markdown(
34
  """
35
- * Tell the therapist your problems, by recording your query.
36
- * Submit your query, and follow the chat or listen to the Therapists advice.
37
- * When you are ready to respond, clear your last recording and resubmit.
38
  note: Transcribe Audio does not work on iOS
39
  """)
40
 
@@ -42,7 +42,7 @@ with gr.Blocks() as demo:
42
  # First message as instructions to OpenAI
43
  # Establishes a State object to create a
44
  # unique state for each user and on reload
45
- messages = gr.State(value=[{"role": "system", "content": "You are a therapist. Respond in less than 5 sentences."}])
46
 
47
  # Takes the users transcribed audio as a string
48
  # Takes the messages list as a reference
 
26
  with gr.Blocks() as demo:
27
  gr.Markdown(
28
  """
29
+ # Reflection Composer
30
  """
31
  )
32
  with gr.Accordion("Click for Instructions:"):
33
  gr.Markdown(
34
  """
35
+ * Press the 'Record' button to record your reflection.
36
+ * Presee the Submit button to submit your audio to be transcribed.
37
+ * If you would like add..
38
  note: Transcribe Audio does not work on iOS
39
  """)
40
 
 
42
  # First message as instructions to OpenAI
43
  # Establishes a State object to create a
44
  # unique state for each user and on reload
45
+ messages = gr.State(value=[{"role": "system", "content": "You are an expert editor. You should take the text submitted and edit it lightly to improve its grammar. Reduce repetiton of key ideas and take out any parts that don't contribute to the meaning of the piece. Keep as much of the wording of the original as you edit it lightly for clarity."}])
46
 
47
  # Takes the users transcribed audio as a string
48
  # Takes the messages list as a reference