Spaces:
Runtime error
Runtime error
Ifeanyi commited on
Commit ·
4bbd28e
1
Parent(s): d48cc37
Updated script
Browse files- app.py +1 -0
- requirments.txt +2 -0
app.py
CHANGED
|
@@ -8,4 +8,5 @@ def image_classifier(image):
|
|
| 8 |
|
| 9 |
gr.Interface(image_classifier,
|
| 10 |
inputs = gr.inputs.Image(label = "Upload Image",type = "filepath"),
|
|
|
|
| 11 |
title = "Image classifier").launch(share = True)
|
|
|
|
| 8 |
|
| 9 |
gr.Interface(image_classifier,
|
| 10 |
inputs = gr.inputs.Image(label = "Upload Image",type = "filepath"),
|
| 11 |
+
outputs = gr.outputs.Label(num_top_classes = 10)
|
| 12 |
title = "Image classifier").launch(share = True)
|
requirments.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
transformers
|
| 2 |
+
timm
|