Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ def draw_panoptic_segmentation(segmentation, segments_info):
|
|
| 41 |
|
| 42 |
for segment in segments_info:
|
| 43 |
segment_id = segment['id']
|
| 44 |
-
color = viridis(segment_id
|
| 45 |
|
| 46 |
# Save the figure to a buffer and convert it to a PIL image
|
| 47 |
buf = BytesIO()
|
|
|
|
| 41 |
|
| 42 |
for segment in segments_info:
|
| 43 |
segment_id = segment['id']
|
| 44 |
+
color = viridis(segment_id)
|
| 45 |
|
| 46 |
# Save the figure to a buffer and convert it to a PIL image
|
| 47 |
buf = BytesIO()
|