Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -164,7 +164,7 @@ with col2:
|
|
| 164 |
if canvas_result.json_data is not None:
|
| 165 |
objects = canvas_result.json_data["objects"]
|
| 166 |
if len(objects) > 0:last_touch = objects[-1]
|
| 167 |
-
|
| 168 |
|
| 169 |
sensation = avatar_sensation_map[int(touch_y), int(touch_x)]
|
| 170 |
pain, pleasure, pressure_sens, temp_sens, texture_sens, em_sens, tickle_sens, itch_sens, quantum_sens, neural_sens = sensation
|
|
|
|
| 164 |
if canvas_result.json_data is not None:
|
| 165 |
objects = canvas_result.json_data["objects"]
|
| 166 |
if len(objects) > 0:last_touch = objects[-1]
|
| 167 |
+
touch_x, touch_y = last_touch["left"], last_touch["top"]
|
| 168 |
|
| 169 |
sensation = avatar_sensation_map[int(touch_y), int(touch_x)]
|
| 170 |
pain, pleasure, pressure_sens, temp_sens, texture_sens, em_sens, tickle_sens, itch_sens, quantum_sens, neural_sens = sensation
|