Spaces:
Runtime error
Runtime error
File size: 317 Bytes
c861968 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import gradio as gr
### https://huggingface.co/blog/fine-tune-vit -->> the blog post how to fine tune ViT
examples = ["example-leaf.jpeg"]
iface = gr.Interface("huggingface/nateraw/vit-base-beans",
inputs="image",
examples=examples,
outputs=gr.outputs.Label(num_top_classes=5, label='Prediction'))
iface.launch() |