Spaces:
Sleeping
Sleeping
Jonas Bechthold
commited on
Commit
·
b3cf1f1
1
Parent(s):
09fde4e
Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ def get_user_input():
|
|
53 |
if feat in ['neighbourhood_group','neighbourhood','room_type']:
|
54 |
input_value = st.text_input(f"Enter value for {feat}", value=input_dict[feat])
|
55 |
else:
|
56 |
-
input_value = st.number_input(f"Enter value for {feat}", value=input_dict[feat], step=0
|
57 |
|
58 |
input_dict[feat] = input_value
|
59 |
|
@@ -71,7 +71,7 @@ if submit_button:
|
|
71 |
|
72 |
# Display the prediction
|
73 |
st.header("Predicted Airbnb price")
|
74 |
-
st.write(prediction_value)
|
75 |
|
76 |
st.markdown(
|
77 |
"""
|
|
|
53 |
if feat in ['neighbourhood_group','neighbourhood','room_type']:
|
54 |
input_value = st.text_input(f"Enter value for {feat}", value=input_dict[feat])
|
55 |
else:
|
56 |
+
input_value = st.number_input(f"Enter value for {feat}", value=input_dict[feat], step=1.0)
|
57 |
|
58 |
input_dict[feat] = input_value
|
59 |
|
|
|
71 |
|
72 |
# Display the prediction
|
73 |
st.header("Predicted Airbnb price")
|
74 |
+
st.write(f"the prediction is {prediction_value:.2f} dollar!)
|
75 |
|
76 |
st.markdown(
|
77 |
"""
|