Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def classify():
|
|
35 |
print(data)
|
36 |
clothes = ["Hat", "Upper-clothes", "Skirt", "Pants", "Dress", "Belt", "Left-shoe", "Right-shoe", "Scarf"]
|
37 |
image = data['image']
|
38 |
-
result = segment_image(clothes
|
39 |
return jsonify({'result': encode_image_to_base64(result)})
|
40 |
|
41 |
if __name__ == "__main__":
|
|
|
35 |
print(data)
|
36 |
clothes = ["Hat", "Upper-clothes", "Skirt", "Pants", "Dress", "Belt", "Left-shoe", "Right-shoe", "Scarf"]
|
37 |
image = data['image']
|
38 |
+
result = segment_image(image,clothes)
|
39 |
return jsonify({'result': encode_image_to_base64(result)})
|
40 |
|
41 |
if __name__ == "__main__":
|