Spaces:
Sleeping
Sleeping
MikeTrizna
commited on
Commit
•
7b0c345
1
Parent(s):
8f09449
Fixed handling
Browse files
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
|
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',
|