zdou0830 commited on
Commit
bbe0905
1 Parent(s): 2a55a2e

specified tokens

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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..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
 
 
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