ErenYeager01 commited on
Commit
ed67c6b
1 Parent(s): 2453681

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ def gem_indentify(image):
3
+ img=image.reshape(-1,30,30,3)
4
+ pred=cnn.predict(img)[0]
5
+ return {classes[i]: float(pred[i]) for i in range(43)}
6
+
7
+ image = gr.inputs.Image(shape=(30,30))
8
+ label = gr.outputs.Label(num_top_classes=7)
9
+ gr.Interface(fn=gem_indentify, inputs=image, outputs=label,interpretation='default').launch()