Spaces:
Runtime error
Runtime error
troubleshoot prediction..
Browse files
app.py
CHANGED
@@ -3,7 +3,8 @@ import tensorflow as tf
|
|
3 |
import numpy as np
|
4 |
|
5 |
model = tf.saved_model.load("/home/user/app/model")
|
6 |
-
|
|
|
7 |
|
8 |
def mnist_classifier(img):
|
9 |
img_tensor = tf.convert_to_tensor(img['composite'], dtype=tf.float32)
|
|
|
3 |
import numpy as np
|
4 |
|
5 |
model = tf.saved_model.load("/home/user/app/model")
|
6 |
+
concrete_functions = list(model.signatures.values())
|
7 |
+
print(f"Found {len(concrete_functions)} concrete functions.")
|
8 |
|
9 |
def mnist_classifier(img):
|
10 |
img_tensor = tf.convert_to_tensor(img['composite'], dtype=tf.float32)
|