Update app.py
Browse files
app.py
CHANGED
|
@@ -125,7 +125,7 @@ def transcribe(audio, text):
|
|
| 125 |
# Add the system message to the beginning of the messages list
|
| 126 |
messages_rev.insert(0, system_message)
|
| 127 |
# Add the input text to the messages list
|
| 128 |
-
messages_rev.insert(0, {"role": "user", "content":
|
| 129 |
|
| 130 |
chat_transcript = f"\n\nNumber of tokens used: {num_tokens}\n\n"
|
| 131 |
|
|
|
|
| 125 |
# Add the system message to the beginning of the messages list
|
| 126 |
messages_rev.insert(0, system_message)
|
| 127 |
# Add the input text to the messages list
|
| 128 |
+
messages_rev.insert(0, {"role": "user", "content": subinput_text + transcript["text"]})
|
| 129 |
|
| 130 |
chat_transcript = f"\n\nNumber of tokens used: {num_tokens}\n\n"
|
| 131 |
|