DJONG-WANG commited on
Commit
031900a
1 Parent(s): d736565

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import sentencepiece
3
+ from transformers import pipeline
4
+
5
+ pipe = pipeline(task='image-classification', model='google/vit-base-patch16-224')
6
+
7
+
8
+ title = "Une application de classifiaction d image"
9
+ description = "Une application intelligente de reconnaissance d'image."
10
+
11
+ gr.Interface.from_pipeline(pipe, title=title, description=description).launch(inbrowser=True)