Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -575,7 +575,7 @@ if uploaded_file is not None:
|
|
575 |
# Add this with your other UI elements
|
576 |
show_heatmap = st.checkbox("Show Sensation Heatmap", value=True)
|
577 |
|
578 |
-
|
579 |
# Simulate interaction at the clicked point
|
580 |
if clicked_points:
|
581 |
touch_x, touch_y = clicked_points[-1]
|
@@ -624,7 +624,7 @@ if uploaded_file is not None:
|
|
624 |
if show_heatmap:
|
625 |
heatmap = create_heatmap(sensation_map, sensation_types.index("Pain"))
|
626 |
st.image(heatmap, use_column_width=True)
|
627 |
-
|
628 |
# Create a futuristic data display
|
629 |
data_display = (
|
630 |
"```\n"
|
|
|
575 |
# Add this with your other UI elements
|
576 |
show_heatmap = st.checkbox("Show Sensation Heatmap", value=True)
|
577 |
|
578 |
+
if st.button("Simulate Interaction"):
|
579 |
# Simulate interaction at the clicked point
|
580 |
if clicked_points:
|
581 |
touch_x, touch_y = clicked_points[-1]
|
|
|
624 |
if show_heatmap:
|
625 |
heatmap = create_heatmap(sensation_map, sensation_types.index("Pain"))
|
626 |
st.image(heatmap, use_column_width=True)
|
627 |
+
|
628 |
# Create a futuristic data display
|
629 |
data_display = (
|
630 |
"```\n"
|