Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -7,8 +7,8 @@ import gradio as gr
|
|
7 |
siglip_checkpoint = "nielsr/siglip-base-patch16-224"
|
8 |
clip_checkpoint = "openai/clip-vit-base-patch16"
|
9 |
clip_detector = pipeline(model=clip_checkpoint, task="zero-shot-image-classification")
|
10 |
-
siglip_model = SiglipModel.from_pretrained("
|
11 |
-
siglip_processor = AutoProcessor.from_pretrained("
|
12 |
|
13 |
|
14 |
def postprocess(output):
|
|
|
7 |
siglip_checkpoint = "nielsr/siglip-base-patch16-224"
|
8 |
clip_checkpoint = "openai/clip-vit-base-patch16"
|
9 |
clip_detector = pipeline(model=clip_checkpoint, task="zero-shot-image-classification")
|
10 |
+
siglip_model = SiglipModel.from_pretrained("google/siglip-base-patch16-224")
|
11 |
+
siglip_processor = AutoProcessor.from_pretrained("google/siglip-base-patch16-224")
|
12 |
|
13 |
|
14 |
def postprocess(output):
|