Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|