Spaces:
Runtime error
Runtime error
remove unneeded line
Browse filesI think you don't need that line
app.py
CHANGED
|
@@ -17,7 +17,6 @@ processor = OwlViTProcessor.from_pretrained("google/owlvit-base-patch32")
|
|
| 17 |
|
| 18 |
|
| 19 |
def query_image(img, text_queries, score_threshold):
|
| 20 |
-
text_queries = text_queries
|
| 21 |
text_queries = text_queries.split(",")
|
| 22 |
|
| 23 |
target_sizes = torch.Tensor([img.shape[:2]])
|
|
|
|
| 17 |
|
| 18 |
|
| 19 |
def query_image(img, text_queries, score_threshold):
|
|
|
|
| 20 |
text_queries = text_queries.split(",")
|
| 21 |
|
| 22 |
target_sizes = torch.Tensor([img.shape[:2]])
|