Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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()
|