updated code
Browse files- app.py +1 -1
- 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,
|
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
|
4 |
numpy
|
5 |
pandas <2.0.0
|
|
|
1 |
fastai
|
2 |
torch
|
3 |
+
gradio
|
4 |
numpy
|
5 |
pandas <2.0.0
|