(file_path)
| 188 | |
| 189 | # Read text from Word document |
| 190 | def read_word_file(file_path): |
| 191 | doc = Document(file_path) |
| 192 | full_text = [] |
| 193 | for para in doc.paragraphs: |
| 194 | full_text.append(para.text) |
| 195 | return '\n'.join(full_text) |
| 196 | |
| 197 | # Process uploaded documents |
| 198 | def process_documents(documents): |