Spaces:
Runtime error
Runtime error
artificialguybr
commited on
Commit
•
775af4c
1
Parent(s):
71f68c1
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ def pdf_to_word(pdf_file):
|
|
8 |
docx_filename = pdf_file.name.replace('.pdf', '.docx')
|
9 |
|
10 |
cv = Converter(pdf_file.name)
|
11 |
-
cv.convert(docx_filename, start=0, end=None)
|
12 |
cv.close()
|
13 |
|
14 |
return docx_filename
|
|
|
8 |
docx_filename = pdf_file.name.replace('.pdf', '.docx')
|
9 |
|
10 |
cv = Converter(pdf_file.name)
|
11 |
+
cv.convert(docx_filename, multi_processing=True, start=0, end=None)
|
12 |
cv.close()
|
13 |
|
14 |
return docx_filename
|