Spaces:
Sleeping
Sleeping
dinhquangson
commited on
Commit
•
224565b
1
Parent(s):
82be9ed
Update app.py
Browse files
app.py
CHANGED
@@ -174,7 +174,7 @@ async def create_upload_file(file: UploadFile = File(...)):
|
|
174 |
text=""
|
175 |
|
176 |
# Extract text from images
|
177 |
-
for
|
178 |
ocr_text = pytesseract.image_to_string(image,lang='vie')
|
179 |
text=text+ocr_text+'\n'
|
180 |
|
|
|
174 |
text=""
|
175 |
|
176 |
# Extract text from images
|
177 |
+
for image in images:
|
178 |
ocr_text = pytesseract.image_to_string(image,lang='vie')
|
179 |
text=text+ocr_text+'\n'
|
180 |
|