Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,9 +2,9 @@ import gradio as gr
|
|
| 2 |
import pikepdf
|
| 3 |
from io import BytesIO
|
| 4 |
|
| 5 |
-
def remove_pdf_password(file, output_file_name, password_prefix,
|
| 6 |
file_content = file.read()
|
| 7 |
-
|
| 8 |
output_path = f"/content/{output_file_name}"
|
| 9 |
|
| 10 |
for year in range(start_year, end_year + 1):
|
|
|
|
| 2 |
import pikepdf
|
| 3 |
from io import BytesIO
|
| 4 |
|
| 5 |
+
def remove_pdf_password(file, output_file_name, password_prefix, start_year, end_year):
|
| 6 |
file_content = file.read()
|
| 7 |
+
|
| 8 |
output_path = f"/content/{output_file_name}"
|
| 9 |
|
| 10 |
for year in range(start_year, end_year + 1):
|