Giuliano commited on
Commit
c861968
1 Parent(s): a6e01d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py CHANGED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+
4
+ ### https://huggingface.co/blog/fine-tune-vit -->> the blog post how to fine tune ViT
5
+
6
+ examples = ["example-leaf.jpeg"]
7
+
8
+ iface = gr.Interface("huggingface/nateraw/vit-base-beans",
9
+ inputs="image",
10
+ examples=examples,
11
+ outputs=gr.outputs.Label(num_top_classes=5, label='Prediction'))
12
+
13
+ iface.launch()