ISYS commited on
Commit
d0502ed
1 Parent(s): 9105c18

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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()