Pranavan Bupathy
commited on
Commit
·
70a5578
1
Parent(s):
97835c4
V1.0
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
-
pipeline = pipeline(task="image-classification", model="pranavbup/
|
5 |
|
6 |
def predict(image):
|
7 |
predictions = pipeline(image)
|
@@ -9,7 +9,7 @@ def predict(image):
|
|
9 |
|
10 |
gr.Interface(
|
11 |
predict,
|
12 |
-
examples=["./b777.jpg","./atr72.jpeg"],
|
13 |
inputs=gr.inputs.Image(label="Upload only commercial aircraft image here", type="filepath"),
|
14 |
outputs=gr.outputs.Label(num_top_classes=5),
|
15 |
title="Find which Aircraft it is ✈️",
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
+
pipeline = pipeline(task="image-classification", model="pranavbup/aircraft-classification")
|
5 |
|
6 |
def predict(image):
|
7 |
predictions = pipeline(image)
|
|
|
9 |
|
10 |
gr.Interface(
|
11 |
predict,
|
12 |
+
examples=["./b777.jpg","./atr72.jpeg","./c208.jpg"],
|
13 |
inputs=gr.inputs.Image(label="Upload only commercial aircraft image here", type="filepath"),
|
14 |
outputs=gr.outputs.Label(num_top_classes=5),
|
15 |
title="Find which Aircraft it is ✈️",
|