Mishmosh commited on
Commit
788f0c1
·
1 Parent(s): 3fc9174

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ !pip install transformers gradio
2
+ from transformers import pipeline
3
+
4
+ image_classifier = pipeline("image-classification")
5
+ image_path = "https://www.skinewgen.com/wp-content/uploads/20210301-New-Generation-91-2.jpg"
6
+ image_classifier(image_path)
7
+ import gradio as gr
8
+
9
+ model = gr.Interface.load("huggingface/google/vit-base-patch16-224")
10
+
11
+ model.launch()