rohan2810 commited on
Commit
8b20f9b
·
1 Parent(s): f6a260d

updated code

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. requirements.txt +1 -1
app.py CHANGED
@@ -14,6 +14,6 @@ image = gr.inputs.Image(shape=(192,192))
14
  label = gr.outputs.Label()
15
  examples = ['dog.jpeg', 'cat.jpeg', 'elephant.jpeg']
16
 
17
- intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
18
  intf.launch(inline=False)
19
 
 
14
  label = gr.outputs.Label()
15
  examples = ['dog.jpeg', 'cat.jpeg', 'elephant.jpeg']
16
 
17
+ intf = gr.Interface(fn=classify_image,inputs=gr.Image(type="pil"), outputs=gr.Label(), examples=examples)
18
  intf.launch(inline=False)
19
 
requirements.txt CHANGED
@@ -1,5 +1,5 @@
1
  fastai
2
  torch
3
- gradio==3.50
4
  numpy
5
  pandas <2.0.0
 
1
  fastai
2
  torch
3
+ gradio
4
  numpy
5
  pandas <2.0.0