ISYS commited on
Commit
9a5af09
1 Parent(s): bcd7a64
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -11,5 +11,9 @@ def greet(img):
11
  numb = np.argmax(model.predict(img)[0])
12
  return numb % 3
13
 
14
- demo = gr.Interface(fn=greet, inputs="sketchpad", outputs="text")
 
 
 
 
15
  demo.launch()
 
11
  numb = np.argmax(model.predict(img)[0])
12
  return numb % 3
13
 
14
+ def zalupa(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", outputs=zalupa)
19
  demo.launch()