Spaces:
Runtime error
Runtime error
Commit
路
9ed2b36
1
Parent(s):
dd0136e
Update app.py
Browse files
app.py
CHANGED
@@ -80,10 +80,10 @@ model = SetFitModel.from_pretrained("desarrolloasesoreslocales/SetFitPruebaRecor
|
|
80 |
# Mapear las etiquetas
|
81 |
|
82 |
# Definir la funci贸n de predicci贸n
|
83 |
-
def predict(
|
84 |
|
85 |
recorte_general = ""
|
86 |
-
ocr_text = ocrtotext(
|
87 |
# Crear chunks
|
88 |
chunks = cortar_en_bloques(ocr_text, 150)
|
89 |
first = -1
|
|
|
80 |
# Mapear las etiquetas
|
81 |
|
82 |
# Definir la funci贸n de predicci贸n
|
83 |
+
def predict(file):
|
84 |
|
85 |
recorte_general = ""
|
86 |
+
ocr_text = ocrtotext(file.name)
|
87 |
# Crear chunks
|
88 |
chunks = cortar_en_bloques(ocr_text, 150)
|
89 |
first = -1
|