MikeTrizna commited on
Commit
7b0c345
1 Parent(s): 8f09449

Fixed handling

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ classifier = pipeline(model=checkpoint,
8
  task="zero-shot-image-classification")
9
 
10
  def shot(image, labels_text):
11
- if len(labels_text):
12
  labels = labels_text.split(";")
13
  else:
14
  labels = ['A page of printed text',
 
8
  task="zero-shot-image-classification")
9
 
10
  def shot(image, labels_text):
11
+ if labels_text:
12
  labels = labels_text.split(";")
13
  else:
14
  labels = ['A page of printed text',