Update app.py
Browse files
app.py
CHANGED
|
@@ -117,7 +117,7 @@ def process_input(audio, pdfs, current_text):
|
|
| 117 |
updated_text = current_text
|
| 118 |
|
| 119 |
# Define the maximum words per chunk (adjust as needed)
|
| 120 |
-
max_chunk_words =
|
| 121 |
|
| 122 |
for text_label, text_content in [("Audio", transcription_text), ("PDF", pdf_text)]:
|
| 123 |
if not text_content:
|
|
|
|
| 117 |
updated_text = current_text
|
| 118 |
|
| 119 |
# Define the maximum words per chunk (adjust as needed)
|
| 120 |
+
max_chunk_words = 2500 # Adjust this number based on your API limits
|
| 121 |
|
| 122 |
for text_label, text_content in [("Audio", transcription_text), ("PDF", pdf_text)]:
|
| 123 |
if not text_content:
|