Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,14 +30,7 @@ def process():
|
|
| 30 |
# pdf_data = res.content
|
| 31 |
print('4')
|
| 32 |
|
| 33 |
-
# Ensure 'pdftotext.texts_from_pdf' is a valid function
|
| 34 |
-
filePath = filePath.replace('?dl=0', '?dl=1')
|
| 35 |
|
| 36 |
-
# Download the PDF
|
| 37 |
-
response = requests.get(filePath)
|
| 38 |
-
with open('downloaded_file.pdf', 'wb') as file:
|
| 39 |
-
file.write(response.content)
|
| 40 |
-
print(response.content)
|
| 41 |
pdftext = pdftotext.texts_from_pdf(filePath)
|
| 42 |
print('5')
|
| 43 |
|
|
|
|
| 30 |
# pdf_data = res.content
|
| 31 |
print('4')
|
| 32 |
|
|
|
|
|
|
|
| 33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
pdftext = pdftotext.texts_from_pdf(filePath)
|
| 35 |
print('5')
|
| 36 |
|