peazy commited on
Commit
fa3f948
1 Parent(s): 7b9d038

fixed model

Browse files
Files changed (3) hide show
  1. app.py +2 -2
  2. truss bridge 1.jpeg +0 -3
  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','Truss')
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','truss bridge 1.jpeg','truss bridge 2.jpeg',]
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

  • SHA256: 9b727e5800f7c834ab0c90d831a16de3284a37ad55c96fffc408f75b9ea2bf78
  • Pointer size: 129 Bytes
  • Size of remote file: 8.44 kB
truss bridge 2.jpeg DELETED

Git LFS Details

  • SHA256: a04926897253c62dd0de9354cf1f3a4bf4df4685984380b787fc489548dd4e35
  • Pointer size: 130 Bytes
  • Size of remote file: 87 kB