Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -88,7 +88,7 @@ def predict(image: PIL.Image.Image, score_threshold: float,
|
|
88 |
continue
|
89 |
res[label] = prob
|
90 |
b = dict(sorted(res.items(),key=lambda item:item[1], reverse=True))
|
91 |
-
a = ', '.join(list(b.keys())).replace('_',' ')
|
92 |
return (a,res)
|
93 |
|
94 |
|
|
|
88 |
continue
|
89 |
res[label] = prob
|
90 |
b = dict(sorted(res.items(),key=lambda item:item[1], reverse=True))
|
91 |
+
a = ', '.join(list(b.keys())).replace('_',' ').replace('(','\(').replace(')','\)')
|
92 |
return (a,res)
|
93 |
|
94 |
|