File size: 376 Bytes
ba6fd91
 
 
41188ab
788f0c1
 
afae258
 
788f0c1
 
 
afae258
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!pip install transformers gradio
#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()