Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|