ranjith commited on
Commit
5890f7a
1 Parent(s): f0f57e2

added more examples

Browse files
Files changed (9) hide show
  1. app.py +1 -1
  2. basalt.jpeg +0 -0
  3. basalt1.jpeg +0 -0
  4. coal.jpeg +0 -0
  5. granite.jpeg +0 -0
  6. limestone.jpeg +0 -0
  7. marble.jpeg +0 -0
  8. quartzite.jpeg +0 -0
  9. sandstone.jpeg +0 -0
app.py CHANGED
@@ -14,5 +14,5 @@ def predict(img):
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)
 
14
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
15
 
16
  title = "rock classifier"
17
+ examples = ["basalt1.jpeg","coal.jpeg","granite.jpeg", "limestone.jpeg","marble.jpeg","quartzite.jpeg","sandstone.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 DELETED
Binary file (7.83 kB)
 
basalt1.jpeg ADDED
coal.jpeg ADDED
granite.jpeg ADDED
limestone.jpeg ADDED
marble.jpeg ADDED
quartzite.jpeg ADDED
sandstone.jpeg ADDED