Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ def create_data(files):
|
|
41 |
for file in files:
|
42 |
if file.name.endswith('png') or file.name.endswith('.jpg'):
|
43 |
try:
|
44 |
-
question_context += (pytesseract.image_to_string(Image.open(file.name), lang='
|
45 |
except Exception as e:
|
46 |
print(e)
|
47 |
pass
|
|
|
41 |
for file in files:
|
42 |
if file.name.endswith('png') or file.name.endswith('.jpg'):
|
43 |
try:
|
44 |
+
question_context += (pytesseract.image_to_string(Image.open(file.name), lang='en')) + '\n\n'
|
45 |
except Exception as e:
|
46 |
print(e)
|
47 |
pass
|