shukdevdatta123 commited on
Commit
fad5dd3
·
verified ·
1 Parent(s): e3c5c63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -48,8 +48,9 @@ def display_house_with_colors():
48
 
49
  positions = {}
50
  for i in range(5):
51
- x = st.number_input(f"X-coordinate for node {i}:", min_value=-10, max_value=10, value=0)
52
- y = st.number_input(f"Y-coordinate for node {i}:", min_value=-10, max_value=10, value=0)
 
53
  positions[i] = (x, y)
54
 
55
  # Allow the user to specify colors for wall and roof nodes
 
48
 
49
  positions = {}
50
  for i in range(5):
51
+ x = st.number_input(f"X-coordinate for node {i}:", min_value=-10.0, max_value=10.0, value=0.0, step=0.1)
52
+ y = st.number_input(f"Y-coordinate for node {i}:", min_value=-10.0, max_value=10.0, value=0.0, step=0.1)
53
+
54
  positions[i] = (x, y)
55
 
56
  # Allow the user to specify colors for wall and roof nodes