brxerq commited on
Commit
9ea3afa
·
verified ·
1 Parent(s): 361066c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -5,7 +5,9 @@ import numpy as np
5
  import tensorflow as tf
6
  import tensorflow_hub as hub
7
  from tensorflow.keras.models import load_model
 
8
 
 
9
  # Specify the custom objects for loading the model
10
  custom_objects = {'KerasLayer': hub.KerasLayer}
11
 
 
5
  import tensorflow as tf
6
  import tensorflow_hub as hub
7
  from tensorflow.keras.models import load_model
8
+ import os
9
 
10
+ os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
11
  # Specify the custom objects for loading the model
12
  custom_objects = {'KerasLayer': hub.KerasLayer}
13