Spaces:
Runtime error
Runtime error
app.py
CHANGED
@@ -15,7 +15,10 @@ def rasp_numb(img):
|
|
15 |
img = np.expand_dims(img, axis=0)
|
16 |
return np.argmax(model.predict(img)[0])
|
17 |
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
|
|
|
|
|
|
|
15 |
img = np.expand_dims(img, axis=0)
|
16 |
return np.argmax(model.predict(img)[0])
|
17 |
|
18 |
+
|
19 |
+
output1 = gr.outputs.Text((np.argmax(model.predict(img)[0])% 3) )
|
20 |
+
|
21 |
+
output2 = gr.outputs.Text(np.argmax(model.predict(img)[0]))
|
22 |
+
|
23 |
+
demo = gr.Interface(fn=greet, inputs="sketchpad", outputs=[output1, output2])
|
24 |
+
demo.launch()
|