Ifeanyi commited on
Commit
3a8efaf
·
1 Parent(s): 8df3f82

Image classifying application

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ from transformers import pipeline
2
+ import gradio as gr
3
+ import timm
4
+
5
+ def image_classifier(image):
6
+ model = pipeline("image-classification")
7
+ return model(image)
8
+
9
+ gr.Interface.from_pipeline(model).launch()