Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -67,17 +67,17 @@ def process_pdf(uploaded_file, brightness, text_scale, line_scale, width, height
|
|
| 67 |
|
| 68 |
# Gradio interface setup
|
| 69 |
inputs = [
|
| 70 |
-
gr.File(label="Upload your PDF file", type="filepath"),
|
| 71 |
-
gr.Slider(minimum=0.5, maximum=5.0, step=0.5,
|
| 72 |
-
gr.Slider(minimum=0.5, maximum=2.0, step=0.1,
|
| 73 |
-
gr.Slider(minimum=0.5, maximum=5.0, step=0.5,
|
| 74 |
gr.Number(value=8.0, label="Width (in inches)", precision=0.1),
|
| 75 |
gr.Number(value=11.0, label="Height (in inches)", precision=0.1)
|
| 76 |
]
|
| 77 |
|
| 78 |
outputs = [
|
| 79 |
-
gr.File(label="Download SVG", type="filepath"),
|
| 80 |
-
gr.File(label="Download PDF", type="filepath")
|
| 81 |
]
|
| 82 |
|
| 83 |
# Launch Gradio interface
|
|
|
|
| 67 |
|
| 68 |
# Gradio interface setup
|
| 69 |
inputs = [
|
| 70 |
+
gr.File(label="Upload your PDF file", type="filepath"),
|
| 71 |
+
gr.Slider(minimum=0.5, maximum=5.0, step=0.5, value=1.0, label="Brightness (0.5 to 5.0)"), # Updated here
|
| 72 |
+
gr.Slider(minimum=0.5, maximum=2.0, step=0.1, value=1.0, label="Text Size Scale (0.5 to 2.0)"), # Updated here
|
| 73 |
+
gr.Slider(minimum=0.5, maximum=5.0, step=0.5, value=1.0, label="Line Thickness Scale (0.5 to 5.0)"), # Updated here
|
| 74 |
gr.Number(value=8.0, label="Width (in inches)", precision=0.1),
|
| 75 |
gr.Number(value=11.0, label="Height (in inches)", precision=0.1)
|
| 76 |
]
|
| 77 |
|
| 78 |
outputs = [
|
| 79 |
+
gr.File(label="Download SVG", type="filepath"),
|
| 80 |
+
gr.File(label="Download PDF", type="filepath")
|
| 81 |
]
|
| 82 |
|
| 83 |
# Launch Gradio interface
|