omarelsayeed commited on
Commit
50073b8
·
1 Parent(s): e7b84b5
Files changed (5) hide show
  1. app.py +4 -4
  2. black_bear.jpg +0 -0
  3. grizzly_bear.jpg +0 -0
  4. requirements.txt +2 -5
  5. teady_bear.jpg +0 -0
app.py CHANGED
@@ -13,10 +13,10 @@ categories = ( 'black bear','grizzly bear' , 'teady bear')
13
  image = gr.inputs.Image(shape=(194,194))
14
  label = gr.outputs.Label()
15
  examples = [
16
- 'train_data2/teady bear/f8d8000c-1eae-43dc-a06b-58e9e242effd.jpg' ,
17
- 'train_data2/grizzly bear/1d5e3d53-a4a9-4f19-b1cb-1bed0f95ed66.jpg',
18
- 'train_data2/black bear/6ea1843c-f6d4-497d-a861-d66ae6b36290.jpg'
19
  ]
20
 
21
  intf = gr.Interface(fn = classify_img , inputs = image , outputs = label , examples = examples)
22
- intf.launch(share = True)
 
13
  image = gr.inputs.Image(shape=(194,194))
14
  label = gr.outputs.Label()
15
  examples = [
16
+ 'teady_bear.jpg' ,
17
+ 'grizzly_bear.jpg' ,
18
+ 'black_bear.jpg'
19
  ]
20
 
21
  intf = gr.Interface(fn = classify_img , inputs = image , outputs = label , examples = examples)
22
+ intf.launch(inline = False)
black_bear.jpg ADDED
grizzly_bear.jpg ADDED
requirements.txt CHANGED
@@ -1,5 +1,2 @@
1
- fastai
2
- torch
3
- gradio
4
- numpy
5
- pandas
 
1
+ fastai==2.7.7
2
+ scikit-image
 
 
 
teady_bear.jpg ADDED