VatsalPatel18
commited on
Commit
•
2ef5a8a
1
Parent(s):
abb70d4
Update main.py
Browse files
main.py
CHANGED
@@ -8,7 +8,7 @@ def load_and_preprocess_image(image_path, clip_processor_path):
|
|
8 |
clip_processor = CLIPImageProcessor.from_pretrained(clip_processor_path)
|
9 |
image = Image.open(image_path).convert("RGB")
|
10 |
inputs = clip_processor(images=[image], return_tensors="pt")
|
11 |
-
image_tensor = inputs['pixel_values']
|
12 |
return image_tensor
|
13 |
|
14 |
def genomic_plip_predictions(image_tensor, model_path):
|
|
|
8 |
clip_processor = CLIPImageProcessor.from_pretrained(clip_processor_path)
|
9 |
image = Image.open(image_path).convert("RGB")
|
10 |
inputs = clip_processor(images=[image], return_tensors="pt")
|
11 |
+
image_tensor = inputs['pixel_values']
|
12 |
return image_tensor
|
13 |
|
14 |
def genomic_plip_predictions(image_tensor, model_path):
|