Spaces:
Runtime error
Runtime error
File size: 281 Bytes
8a58cf3 |
1 2 3 4 5 6 7 8 9 10 11 |
#!C:\TrainGPT\myenv\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'))
|