Spaces:
Sleeping
Sleeping
Commit
·
15784aa
1
Parent(s):
e539ed3
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
pipe = pipeline("zero-shot-image-classification", model="openai/clip-vit-base-patch32")
|
3 |
def predict(photo,Label1,Label2,Label3):
|
4 |
out1= pipe(images=photo,candidate_labels=[Label1,Label2,Label3])
|
|
|
1 |
import gradio as gr
|
2 |
+
from transformers import pipeline
|
3 |
pipe = pipeline("zero-shot-image-classification", model="openai/clip-vit-base-patch32")
|
4 |
def predict(photo,Label1,Label2,Label3):
|
5 |
out1= pipe(images=photo,candidate_labels=[Label1,Label2,Label3])
|