marcellohalfeld commited on
Commit
7f0d03a
1 Parent(s): 4c22a71

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -1,7 +1,6 @@
1
  from transformers import pipeline
 
2
 
3
- #pipe = pipeline("image-to-text", model="Salesforce/blip-image-captioning-base")
4
- pipe = pipeline(model="Salesforce/blip-image-captioning-base")
5
- preds = pipe(
6
- images="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/pipeline-cat-chonk.jpeg"
7
- )
 
1
  from transformers import pipeline
2
+ import gradio as gr
3
 
4
+ pipe = pipeline("image-classification", model="google/vit-base-patch16-224")
5
+
6
+ gr.Interface.from_pipeline(pipe).launch()