Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ def process_pdf(file, scale_text, line_thickness):
|
|
| 5 |
if file is None:
|
| 6 |
return "No file uploaded!"
|
| 7 |
input_pdf = file.name
|
| 8 |
-
output_pdf = "
|
| 9 |
try:
|
| 10 |
modify_pdf(input_pdf, output_pdf, scale_text, line_thickness)
|
| 11 |
return output_pdf
|
|
@@ -20,9 +20,9 @@ interface = gr.Interface(
|
|
| 20 |
gr.Slider(0.5, 2.0, step=0.1, value=1.2, label="Text Thickness Scaling Factor"),
|
| 21 |
],
|
| 22 |
outputs=[
|
| 23 |
-
gr.File(label="Download Modified
|
| 24 |
],
|
| 25 |
-
title="PDF
|
| 26 |
description="Upload a PDF to modify text size and thickness. The output retains vector and layer data."
|
| 27 |
)
|
| 28 |
|
|
|
|
| 5 |
if file is None:
|
| 6 |
return "No file uploaded!"
|
| 7 |
input_pdf = file.name
|
| 8 |
+
output_pdf = "output_modified.pdf"
|
| 9 |
try:
|
| 10 |
modify_pdf(input_pdf, output_pdf, scale_text, line_thickness)
|
| 11 |
return output_pdf
|
|
|
|
| 20 |
gr.Slider(0.5, 2.0, step=0.1, value=1.2, label="Text Thickness Scaling Factor"),
|
| 21 |
],
|
| 22 |
outputs=[
|
| 23 |
+
gr.File(label="Download Modified PDF")
|
| 24 |
],
|
| 25 |
+
title="PDF Modifier",
|
| 26 |
description="Upload a PDF to modify text size and thickness. The output retains vector and layer data."
|
| 27 |
)
|
| 28 |
|