Update app.py
Browse files
app.py
CHANGED
@@ -109,7 +109,7 @@ def transcribe(audio, text):
|
|
109 |
|
110 |
|
111 |
# Concatenate the chat history
|
112 |
-
chat_transcript = "\n\n".join([f"[ANSWER {answer_count}]{message['role']}: {message['content']}" for message in
|
113 |
|
114 |
# Append the number of tokens used to the end of the chat transcript
|
115 |
chat_transcript += f"\n\nNumber of tokens used: {num_tokens}\n\n"
|
|
|
109 |
|
110 |
|
111 |
# Concatenate the chat history
|
112 |
+
chat_transcript = "\n\n".join([f"[ANSWER {answer_count}]{message['role']}: {message['content']}" for message in messages_rev if message['role'] != 'system'])
|
113 |
|
114 |
# Append the number of tokens used to the end of the chat transcript
|
115 |
chat_transcript += f"\n\nNumber of tokens used: {num_tokens}\n\n"
|