Spaces:
Runtime error
Runtime error
fixed model
Browse files- app.py +2 -2
- truss bridge 1.jpeg +0 -3
- truss bridge 2.jpeg +0 -3
app.py
CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
|
|
3 |
learn = load_learner('bridges.pkl')
|
4 |
|
5 |
|
6 |
-
categories = ('Arch','Cantilever','Suspension'
|
7 |
|
8 |
|
9 |
def classify_image(img):
|
@@ -14,7 +14,7 @@ def classify_image(img):
|
|
14 |
image = gr.inputs.Image(shape=(192, 192))
|
15 |
label = gr.outputs.Label()
|
16 |
|
17 |
-
examples = ['arch bridge 1.jpeg', 'arch bridge 2.jpeg','cantilever bridge 1.jpeg','cantilever bridge 2.jpeg','suspension bridge 1.jpeg','suspension bridge 2.webp'
|
18 |
|
19 |
intf = gr.Interface(fn=classify_image, inputs=image,
|
20 |
outputs=label, examples=examples)
|
|
|
3 |
learn = load_learner('bridges.pkl')
|
4 |
|
5 |
|
6 |
+
categories = ('Arch','Cantilever','Suspension')
|
7 |
|
8 |
|
9 |
def classify_image(img):
|
|
|
14 |
image = gr.inputs.Image(shape=(192, 192))
|
15 |
label = gr.outputs.Label()
|
16 |
|
17 |
+
examples = ['arch bridge 1.jpeg', 'arch bridge 2.jpeg','cantilever bridge 1.jpeg','cantilever bridge 2.jpeg','suspension bridge 1.jpeg','suspension bridge 2.webp']
|
18 |
|
19 |
intf = gr.Interface(fn=classify_image, inputs=image,
|
20 |
outputs=label, examples=examples)
|
truss bridge 1.jpeg
DELETED
Git LFS Details
|
truss bridge 2.jpeg
DELETED
Git LFS Details
|