gbryan commited on
Commit
ef95e07
1 Parent(s): ff744e0
Files changed (2) hide show
  1. app.py +2 -2
  2. requirements.txt +2 -1
app.py CHANGED
@@ -1,6 +1,6 @@
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
- pipe = pipeline(task="image-classification", model="microsoft/beit-base-patch16-224-pt22k-ft22k")
5
 
6
- gr.Interface.from_pipeline(pipe, title="22k Image Classification", description="Object Recognition using Microsoft BEIT", examples = ['wonder_cat.jpg', 'aki_dog.jpg',], allow_flagging="never").launch(inbrowser=True)
 
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
+ pipe = pipeline(task="image-classification", model="imjeffhi/pokemon_classifier")
5
 
6
+ gr.Interface.from_pipeline(pipe, title="Pokemon Classifier", description="A fine-tuned version of ViT-base on a collected set of Pokémon images", allow_flagging="never").launch(inbrowser=True)
requirements.txt CHANGED
@@ -1 +1,2 @@
1
- transformers
 
 
1
+ transformers
2
+ torch