Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -255,7 +255,7 @@ with col2:
|
|
255 |
|
256 |
|
257 |
if canvas_result.json_data is not None:
|
258 |
-
|
259 |
if len(objects) > 0:
|
260 |
last_touch = objects[-1]
|
261 |
touch_x, touch_y = last_touch["left"], last_touch["top"] sensation = avatar_sensation_map[int(touch_y), int(touch_x)]
|
|
|
255 |
|
256 |
|
257 |
if canvas_result.json_data is not None:
|
258 |
+
objects = canvas_result.json_data["objects"]
|
259 |
if len(objects) > 0:
|
260 |
last_touch = objects[-1]
|
261 |
touch_x, touch_y = last_touch["left"], last_touch["top"] sensation = avatar_sensation_map[int(touch_y), int(touch_x)]
|