Spaces:
Sleeping
Sleeping
Create app.py
Browse files
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)
|