Mishmosh's picture
Update app.py
54d96bf
raw
history blame
373 Bytes
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()