saikanov's picture
Upload folder using huggingface_hub
fc12014 verified
raw
history blame
332 Bytes
#!C:\!Con-Main\[0]-Maen\[1]-ai\technewsAgent\tech_news\.venv\Scripts\python.exe
import docx2txt
if __name__ == '__main__':
import sys
args = docx2txt.process_args()
text = docx2txt.process(args.docx, args.img_dir)
output = getattr(sys.stdout, 'buffer', sys.stdout)
output.write(text.encode('utf-8'))