Spaces:
Runtime error
Runtime error
| import gradio as gr | |
| from transformers import pipeline | |
| ### https://huggingface.co/blog/fine-tune-vit -->> the blog post how to fine tune ViT | |
| pipe = pipeline(task="image-classification", | |
| model="nateraw/vit-base-beans") | |
| gr.Interface.from_pipeline(pipe, | |
| examples=["example-leaf.jpeg"], | |
| ).launch() |