Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -84,10 +84,10 @@ def detectarCatastro(pdf):
|
|
84 |
text = pytesseract.image_to_string(rgb)
|
85 |
mostrar = mostrar + text
|
86 |
|
87 |
-
return
|
88 |
|
89 |
|
90 |
-
pdf = gr.File(label="Input PDF")
|
91 |
method = gr.Radio(["PaddleOCR","EasyOCR", "KerasOCR"],value="PaddleOCR")
|
92 |
output = gr.Textbox(label="Output")
|
93 |
|
|
|
84 |
text = pytesseract.image_to_string(rgb)
|
85 |
mostrar = mostrar + text
|
86 |
|
87 |
+
return mostrar
|
88 |
|
89 |
|
90 |
+
pdf = gr.File(label="Input PDF", value="ejemplo.pdf")
|
91 |
method = gr.Radio(["PaddleOCR","EasyOCR", "KerasOCR"],value="PaddleOCR")
|
92 |
output = gr.Textbox(label="Output")
|
93 |
|