Update app.py
Browse files
app.py
CHANGED
@@ -73,7 +73,7 @@ def transcribe(audio, text):
|
|
73 |
# Add the input tokens to the messages list
|
74 |
input_text = tokenizer.decode(input_tokens)
|
75 |
|
76 |
-
messages.append({"role": "user", "content": transcript["text"]+input_text})
|
77 |
|
78 |
# Check if the accumulated tokens have exceeded the limit
|
79 |
num_tokens = num_tokens_from_messages(messages)
|
|
|
73 |
# Add the input tokens to the messages list
|
74 |
input_text = tokenizer.decode(input_tokens)
|
75 |
|
76 |
+
messages.append({"role": "user", "content": transcript["text"] + input_text})
|
77 |
|
78 |
# Check if the accumulated tokens have exceeded the limit
|
79 |
num_tokens = num_tokens_from_messages(messages)
|