NCatbage commited on
Commit
5d532cb
1 Parent(s): d84fece

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
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": [carat],
33
- "cut": [cut],
34
- "color": [color],
35
- "clarity": [clarity],
36
  "depth":[depth],
37
- "table": [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]}))