Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import spaces
|
|
6 |
model = CLIPModel.from_pretrained("openai/clip-vit-base-patch16").to("cuda")
|
7 |
processor = CLIPProcessor.from_pretrained("openai/clip-vit-base-patch16")
|
8 |
|
9 |
-
@spaces.GPU
|
10 |
def calculate_score(image, text):
|
11 |
labels = text.split(";")
|
12 |
labels = [l.strip() for l in labels]
|
|
|
6 |
model = CLIPModel.from_pretrained("openai/clip-vit-base-patch16").to("cuda")
|
7 |
processor = CLIPProcessor.from_pretrained("openai/clip-vit-base-patch16")
|
8 |
|
9 |
+
@spaces.GPU
|
10 |
def calculate_score(image, text):
|
11 |
labels = text.split(";")
|
12 |
labels = [l.strip() for l in labels]
|