hdeldar commited on
Commit
426234b
1 Parent(s): f1e5612

back to cpu

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=True) #, 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
 
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