Spaces:
Sleeping
Sleeping
ranjith
commited on
Commit
·
5890f7a
1
Parent(s):
f0f57e2
added more examples
Browse files- app.py +1 -1
- basalt.jpeg +0 -0
- basalt1.jpeg +0 -0
- coal.jpeg +0 -0
- granite.jpeg +0 -0
- limestone.jpeg +0 -0
- marble.jpeg +0 -0
- quartzite.jpeg +0 -0
- 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 = ["
|
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
![]() |