back to cpu
Browse files
app.py
CHANGED
@@ -101,7 +101,7 @@ def main():
|
|
101 |
holder.empty()
|
102 |
|
103 |
# it will only detect the English and Turkish part of the image as text
|
104 |
-
reader = easyocr.Reader(['fa','ar'], gpu=
|
105 |
result = reader.readtext(np.array(image)) # turn image to numpy array
|
106 |
|
107 |
# Add a placeholder
|
|
|
101 |
holder.empty()
|
102 |
|
103 |
# it will only detect the English and Turkish part of the image as text
|
104 |
+
reader = easyocr.Reader(['fa','ar'], gpu=False) #, model_storage_directory='temp/',user_network_directory='temp/net'
|
105 |
result = reader.readtext(np.array(image)) # turn image to numpy array
|
106 |
|
107 |
# Add a placeholder
|