Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -29,13 +29,12 @@ def main():
|
|
29 |
# clicked==True only when the button is clicked
|
30 |
clicked = st.form_submit_button("Predict Price")
|
31 |
if clicked:
|
32 |
-
result=model.predict(pd.DataFrame({"carat":
|
33 |
-
"cut":
|
34 |
-
"color":
|
35 |
-
"clarity":
|
36 |
"depth":[depth],
|
37 |
-
"table":
|
38 |
-
"size": [size],
|
39 |
"length(mm)":[x],
|
40 |
"width(mm)":[y],
|
41 |
"depth(mm)":[z]}))
|
|
|
29 |
# clicked==True only when the button is clicked
|
30 |
clicked = st.form_submit_button("Predict Price")
|
31 |
if clicked:
|
32 |
+
result=model.predict(pd.DataFrame({"carat":[carat],
|
33 |
+
"cut":[cut],
|
34 |
+
"color":[color],
|
35 |
+
"clarity":[clarity],
|
36 |
"depth":[depth],
|
37 |
+
"table":[table],
|
|
|
38 |
"length(mm)":[x],
|
39 |
"width(mm)":[y],
|
40 |
"depth(mm)":[z]}))
|