Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from transformers import pipeline
|
3 |
+
|
4 |
+
pipe = pipeline(task="image-classification",
|
5 |
+
model="canadianjosieharrison/swinv2-large-patch4-window12-192-22k-baseline")
|
6 |
+
|
7 |
+
gr.Interface.from_pipeline(pipe,
|
8 |
+
title="22k Image Classification",
|
9 |
+
description="Object Recognition ...",
|
10 |
+
examples = ["falling_water_cafe.PNG", "gtb_central_train.PNG", "sagrada_familia.PNG"],
|
11 |
+
).launch()
|