praneeth232 commited on
Commit
a5491e1
·
verified ·
1 Parent(s): 57cacab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -25,7 +25,7 @@ CHAS = st.selectbox("Charles River dummy variable (CHAS)", ["0 (No)", "1 (Yes)"]
25
  CHAS_value = 1 if CHAS.startswith("1") else 0
26
 
27
  # Create input DataFrame
28
- input_data = pd.DataFrame([{
29
  'CRIM': CRIM,
30
  'ZN': ZN,
31
  'INDUS': INDUS,
@@ -38,7 +38,7 @@ input_data = pd.DataFrame([{
38
  'PTRATIO': PTRATIO,
39
  'LSTAT': LSTAT,
40
  'CHAS': CHAS_value
41
- }])
42
 
43
  if st.button("Predict", type='primary'):
44
  response = requests.post("https://praneeth232-backend-space.hf.space/v1/house", json=input_data) # enter user name and space name before running the cell
 
25
  CHAS_value = 1 if CHAS.startswith("1") else 0
26
 
27
  # Create input DataFrame
28
+ input_data = {
29
  'CRIM': CRIM,
30
  'ZN': ZN,
31
  'INDUS': INDUS,
 
38
  'PTRATIO': PTRATIO,
39
  'LSTAT': LSTAT,
40
  'CHAS': CHAS_value
41
+ }
42
 
43
  if st.button("Predict", type='primary'):
44
  response = requests.post("https://praneeth232-backend-space.hf.space/v1/house", json=input_data) # enter user name and space name before running the cell