elifnurkarakoc commited on
Commit
db2b407
1 Parent(s): 60dbcd5

Create new file

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from transformers import pipeline
3
+
4
+ pipe = pipeline(task="image-classification",
5
+ model="microsoft/beit-base-patch16-224-pt22k-ft22k")
6
+ gr.Interface.from_pipeline(pipe,
7
+ title="Image Classification",
8
+ description="Object Recognition using Microsoft BEIT",
9
+ ).launch()