Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ def load_clip(model_size='large'):
|
|
17 |
|
18 |
return processor, model
|
19 |
|
20 |
-
def inference_clip(options, image):
|
21 |
|
22 |
inputs = processor(text= options, images=image, return_tensors="pt", padding=True)
|
23 |
with torch.no_grad():
|
|
|
17 |
|
18 |
return processor, model
|
19 |
|
20 |
+
def inference_clip(options, image, processor, model):
|
21 |
|
22 |
inputs = processor(text= options, images=image, return_tensors="pt", padding=True)
|
23 |
with torch.no_grad():
|