Spaces:
Sleeping
Sleeping
brandonongsc
commited on
Commit
•
d4e25eb
1
Parent(s):
3417cc4
Update app.py
Browse files
app.py
CHANGED
@@ -34,16 +34,8 @@ def load_model():
|
|
34 |
detection_model = tf.saved_model.load(saved_model_dir)
|
35 |
return detection_model
|
36 |
|
37 |
-
|
38 |
-
|
39 |
-
tarfile.open("balloon_model.tar.gz").extractall()
|
40 |
-
model_dir = 'saved_model'
|
41 |
-
detection_model = tf.saved_model.load(str(model_dir))
|
42 |
-
return detection_model
|
43 |
-
|
44 |
-
# samples_folder = 'test_samples
|
45 |
-
# image_path = 'test_samples/sample_balloon.jpeg
|
46 |
-
#
|
47 |
|
48 |
def predict(pilimg):
|
49 |
|
|
|
34 |
detection_model = tf.saved_model.load(saved_model_dir)
|
35 |
return detection_model
|
36 |
|
37 |
+
|
38 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
|
40 |
def predict(pilimg):
|
41 |
|