ISYS commited on
Commit
2e48875
1 Parent(s): 02a9859
Files changed (1) hide show
  1. app.py +7 -4
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
- #demo = gr.Interface(fn=greet, inputs="sketchpad", outputs="text")
19
- demo1 = gr.Interface (fn=rasp_numb, inputs="sketchpad", outputs="text")
20
- #demo.launch()
21
- demo1.launch()
 
 
 
 
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()