ranjith commited on
Commit
f0f57e2
·
1 Parent(s): 1f40754

title added

Browse files
Files changed (2) hide show
  1. app.py +2 -1
  2. basalt.jpeg +0 -0
app.py CHANGED
@@ -14,4 +14,5 @@ def predict(img):
14
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
15
 
16
  title = "rock classifier"
17
- gr.Interface(fn=predict, inputs=gr.Image(), outputs=gr.Label(num_top_classes=7)).launch(share=True)
 
 
14
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
15
 
16
  title = "rock classifier"
17
+ examples = ["basalt.jpeg"]
18
+ gr.Interface(fn=predict, inputs=gr.Image(), outputs=gr.Label(num_top_classes=7),title = title,examples= examples).launch(share=True)
basalt.jpeg ADDED