Spaces:
Build error
Build error
Commit
·
c23c07f
1
Parent(s):
77ae6a6
updated app
Browse files
app.py
CHANGED
@@ -220,6 +220,7 @@ if uploaded_file is not None:
|
|
220 |
origImgNP = gray2rgb(origImgNP)
|
221 |
charOffset = 0
|
222 |
img1 = transforms.Normalize(0.5, 0.5)(img1) # Between -1 to 1
|
|
|
223 |
target = converter.encode([labels])
|
224 |
|
225 |
### Local explanations only
|
|
|
220 |
origImgNP = gray2rgb(origImgNP)
|
221 |
charOffset = 0
|
222 |
img1 = transforms.Normalize(0.5, 0.5)(img1) # Between -1 to 1
|
223 |
+
labels = labels.lower()
|
224 |
target = converter.encode([labels])
|
225 |
|
226 |
### Local explanations only
|