ajcdp commited on
Commit
d5d64c0
1 Parent(s): 30a75cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -1,3 +1,11 @@
1
  import gradio as gr
 
2
 
3
- gr.Interface.load("models/google/vit-base-patch16-224").launch()
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
+ from transformers import pipeline
3
 
4
+ pipe = pipeline(task="image-classification",
5
+ model="google/vit-base-patch16-224")
6
+
7
+
8
+ gr.Interface.from_pipeline(pipe,
9
+ title="Image Classification",
10
+ description="Please upload an image by clicking the 'Choose File' button below. We will use this image to demonstrate our image classification capabilities"
11
+ ).launch()