Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,15 +26,15 @@ def transcribe(audio):
|
|
| 26 |
with gr.Blocks() as demo:
|
| 27 |
gr.Markdown(
|
| 28 |
"""
|
| 29 |
-
#
|
| 30 |
"""
|
| 31 |
)
|
| 32 |
with gr.Accordion("Click for Instructions:"):
|
| 33 |
gr.Markdown(
|
| 34 |
"""
|
| 35 |
-
*
|
| 36 |
-
*
|
| 37 |
-
*
|
| 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
|
| 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
|