File size: 341 Bytes
259b3d1
 
 
788f0c1
 
afae258
 
788f0c1
 
 
afae258
 
54d96bf
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from transformers import pipeline
import gradio as gr

image_classifier = pipeline("image-classification")
image_path = "https://www.skinewgen.com/wp-content/uploads/20210301-New-Generation-91-2.jpg"
result = image_classifier(image_path)
print(result)

model = gr.Interface.load("huggingface/google/vit-base-patch16-224")

model.launch()