Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -83,7 +83,7 @@ def video_text_zeroshot(image, text_list):
|
|
83 |
return score_dict
|
84 |
|
85 |
def doubleimage_text_zeroshot(image, image2, text_list):
|
86 |
-
image_paths = [image]
|
87 |
labels = [label.strip(" ") for label in text_list.strip(" ").split("|")]
|
88 |
inputs = {
|
89 |
ModalityType.TEXT: data.load_and_transform_text(labels, device),
|
|
|
83 |
return score_dict
|
84 |
|
85 |
def doubleimage_text_zeroshot(image, image2, text_list):
|
86 |
+
image_paths = [image, image2]
|
87 |
labels = [label.strip(" ") for label in text_list.strip(" ").split("|")]
|
88 |
inputs = {
|
89 |
ModalityType.TEXT: data.load_and_transform_text(labels, device),
|