qingshan777 commited on
Commit
846751f
·
verified ·
1 Parent(s): faa9c17

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -49,6 +49,10 @@ def Retrieval(image, candidate_labels, text_type):
49
  Takes an image and a comma-separated string of candidate labels,
50
  and returns the classification scores.
51
  """
 
 
 
 
52
 
53
  image = image.convert("RGB")
54
 
 
49
  Takes an image and a comma-separated string of candidate labels,
50
  and returns the classification scores.
51
  """
52
+ if text_type is None:
53
+ text_type = "long"
54
+ print(text_type)
55
+
56
 
57
  image = image.convert("RGB")
58