Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,9 +21,10 @@ import spaces
|
|
21 |
import pytesseract
|
22 |
from PIL import Image
|
23 |
|
24 |
-
os.environ['CUDA_VISIBLE_DEVICES'] = "
|
25 |
|
26 |
gpus = tf.config.experimental.list_physical_devices('GPU')
|
|
|
27 |
if gpus:
|
28 |
try:
|
29 |
for gpu in gpus:
|
|
|
21 |
import pytesseract
|
22 |
from PIL import Image
|
23 |
|
24 |
+
os.environ['CUDA_VISIBLE_DEVICES'] = "1"
|
25 |
|
26 |
gpus = tf.config.experimental.list_physical_devices('GPU')
|
27 |
+
print("\n\n gpus :",gpus)
|
28 |
if gpus:
|
29 |
try:
|
30 |
for gpu in gpus:
|