Update app.py
Browse files
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 |
|