Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,11 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from transformers import pipeline
|
| 3 |
|
| 4 |
+
pipe = pipeline(task="image-classification",
|
| 5 |
+
model="google/vit-base-patch16-224")
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
gr.Interface.from_pipeline(pipe,
|
| 9 |
+
title="Image Classification",
|
| 10 |
+
description="Please upload an image by clicking the 'Choose File' button below. We will use this image to demonstrate our image classification capabilities"
|
| 11 |
+
).launch()
|