pragnakalp commited on
Commit
07e246b
1 Parent(s): 2ed439f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -21,13 +21,13 @@ import spaces
21
  import pytesseract
22
  from PIL import Image
23
 
24
- gpus = tf.config.experimental.list_physical_devices('GPU')
25
- if gpus:
26
- try:
27
- for gpu in gpus:
28
- tf.config.experimental.set_memory_growth(gpu, True)
29
- except RuntimeError as e:
30
- print(e)
31
 
32
  """
33
  Paddle OCR
 
21
  import pytesseract
22
  from PIL import Image
23
 
24
+ # gpus = tf.config.experimental.list_physical_devices('GPU')
25
+ # if gpus:
26
+ # try:
27
+ # for gpu in gpus:
28
+ # tf.config.experimental.set_memory_growth(gpu, True)
29
+ # except RuntimeError as e:
30
+ # print(e)
31
 
32
  """
33
  Paddle OCR