Spaces:
Runtime error
Runtime error
Update funciones.py
Browse files- funciones.py +1 -1
funciones.py
CHANGED
@@ -6,7 +6,7 @@ def clasificacion(text):
|
|
6 |
return clasificador(text)[0]["label"]
|
7 |
|
8 |
|
9 |
-
def clasifica_imagen(
|
10 |
inp = inp.reshape((-1224,224,3))
|
11 |
inp = tf.keras.applications.mobilenet_v2.preprocess_input(inp)
|
12 |
prediction = inception_net.predict(inp).flatten()
|
|
|
6 |
return clasificador(text)[0]["label"]
|
7 |
|
8 |
|
9 |
+
def clasifica_imagen(inp):
|
10 |
inp = inp.reshape((-1224,224,3))
|
11 |
inp = tf.keras.applications.mobilenet_v2.preprocess_input(inp)
|
12 |
prediction = inception_net.predict(inp).flatten()
|