Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,8 +42,8 @@ class mm_inference:
|
|
| 42 |
self.img_feature_extractor = AutoFeatureExtractor.from_pretrained(self.img_model_ckpt)
|
| 43 |
|
| 44 |
# text and image pipeles for feature extraction
|
| 45 |
-
self.text_feature_extractor = pipeline(task = 'feature-extraction', model = 'lzun/
|
| 46 |
-
self.img_model = ViTModel.from_pretrained('lzun/
|
| 47 |
|
| 48 |
def get_text_embs(self, text):
|
| 49 |
'''
|
|
|
|
| 42 |
self.img_feature_extractor = AutoFeatureExtractor.from_pretrained(self.img_model_ckpt)
|
| 43 |
|
| 44 |
# text and image pipeles for feature extraction
|
| 45 |
+
self.text_feature_extractor = pipeline(task = 'feature-extraction', model = 'lzun/mcovmex-text', tokenizer = self.tokenizer, return_tensors = True, device = device)
|
| 46 |
+
self.img_model = ViTModel.from_pretrained('lzun/mcovmex-image')
|
| 47 |
|
| 48 |
def get_text_embs(self, text):
|
| 49 |
'''
|