Spaces:
Sleeping
Sleeping
specified tokens
Browse files
app.py
CHANGED
@@ -67,7 +67,7 @@ def predict(image, text, specified_tokens=""):
|
|
67 |
if specified_tokens.strip() == "":
|
68 |
specified_tokens = None
|
69 |
else:
|
70 |
-
specified_tokens = specified_tokens
|
71 |
result, _ = glip_demo.run_on_web_image(image[:, :, [2, 1, 0]], text, 0.5, specified_tokens)
|
72 |
return result[:, :, [2, 1, 0]]
|
73 |
|
|
|
67 |
if specified_tokens.strip() == "":
|
68 |
specified_tokens = None
|
69 |
else:
|
70 |
+
specified_tokens = specified_tokens.strip().split(";")
|
71 |
result, _ = glip_demo.run_on_web_image(image[:, :, [2, 1, 0]], text, 0.5, specified_tokens)
|
72 |
return result[:, :, [2, 1, 0]]
|
73 |
|