Spaces:
Sleeping
Sleeping
Update src/PDFprocess_sample.py
Browse files- src/PDFprocess_sample.py +1 -1
src/PDFprocess_sample.py
CHANGED
|
@@ -20,7 +20,7 @@ def process_pdf(uploaded_file):
|
|
| 20 |
for uploaded_file in uploaded_file:
|
| 21 |
|
| 22 |
with tempfile.NamedTemporaryFile(delete=False , suffix='.pdf') as temp_file:
|
| 23 |
-
temp_file.write(
|
| 24 |
temp_file_path = temp_file.name # Get the temporary file path
|
| 25 |
|
| 26 |
# temp_file_path = os.path.join("/tmp", uploaded_file.name)
|
|
|
|
| 20 |
for uploaded_file in uploaded_file:
|
| 21 |
|
| 22 |
with tempfile.NamedTemporaryFile(delete=False , suffix='.pdf') as temp_file:
|
| 23 |
+
temp_file.write(uploaded_file) ## write file to temporary
|
| 24 |
temp_file_path = temp_file.name # Get the temporary file path
|
| 25 |
|
| 26 |
# temp_file_path = os.path.join("/tmp", uploaded_file.name)
|