Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,10 @@ model = from_pretrained_keras("ISYS/MyNewModel")
|
|
7 |
|
8 |
def greet(img):
|
9 |
img = np.expand_dims(img, axis=0)
|
10 |
-
return np.argmax(model.predict(img)[0])
|
|
|
|
|
|
|
11 |
|
12 |
demo = gr.Interface(fn=greet, inputs="sketchpad", outputs="text")
|
13 |
demo.launch()
|
|
|
7 |
|
8 |
def greet(img):
|
9 |
img = np.expand_dims(img, axis=0)
|
10 |
+
#return np.argmax(model.predict(img)[0])
|
11 |
+
numb = np.argmax(model.predict(img)[0])
|
12 |
+
ost_numb = numb % 3
|
13 |
+
return ost_numb
|
14 |
|
15 |
demo = gr.Interface(fn=greet, inputs="sketchpad", outputs="text")
|
16 |
demo.launch()
|