Spaces:
Sleeping
Sleeping
Commit
·
3bc7980
1
Parent(s):
68ea811
Update app.py
Browse files
app.py
CHANGED
@@ -55,8 +55,7 @@ utils_ops.tf = tf.compat.v1
|
|
55 |
|
56 |
# Patch the location of gfile
|
57 |
tf.gfile = tf.io.gfile
|
58 |
-
os.
|
59 |
-
os.system('python research/object_detection/builders/model_builder_tf2_test.py')
|
60 |
def load_model(model_dir):
|
61 |
model = tf.saved_model.load(str(model_dir))
|
62 |
model = model.signatures['serving_default']
|
|
|
55 |
|
56 |
# Patch the location of gfile
|
57 |
tf.gfile = tf.io.gfile
|
58 |
+
os.system('python object_detection/builders/model_builder_tf2_test.py')
|
|
|
59 |
def load_model(model_dir):
|
60 |
model = tf.saved_model.load(str(model_dir))
|
61 |
model = model.signatures['serving_default']
|