allopeap commited on
Commit
6d6aaec
·
verified ·
1 Parent(s): adc8bc0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -84,10 +84,10 @@ def detectarCatastro(pdf):
84
  text = pytesseract.image_to_string(rgb)
85
  mostrar = mostrar + text
86
 
87
- return text
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