LethallyHealthy commited on
Commit
1fb410d
·
1 Parent(s): 87e2f82

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,11 +1,13 @@
1
  #import the necessary dependencies
2
  import streamlit as st
3
  from transformers import pipeline
 
 
4
  import predictor
5
 
6
  #INTERFACE
7
 
8
- data = {}
9
  for label in predictor.X_test.columns:
10
  data[label] = 0
11
 
@@ -35,6 +37,7 @@ data["KitchenQual"] = st.slider("Quality of the Kitchen", 1, 5)
35
  data["OpenPorchSF"] = st.number_input("Open Porch Square Footage:", value=0, min_value=0)
36
  data["MoSold"] = st.slider("Month Sold:", 1,12)
37
 
 
38
  if st.button("Calculate"):
39
  results = predictor.make_a_prediction(data)
40
  print(results)
 
1
  #import the necessary dependencies
2
  import streamlit as st
3
  from transformers import pipeline
4
+ import lightgbm as lgb
5
+ import pandas as pd
6
  import predictor
7
 
8
  #INTERFACE
9
 
10
+ data = pd.DataFrame({})
11
  for label in predictor.X_test.columns:
12
  data[label] = 0
13
 
 
37
  data["OpenPorchSF"] = st.number_input("Open Porch Square Footage:", value=0, min_value=0)
38
  data["MoSold"] = st.slider("Month Sold:", 1,12)
39
 
40
+
41
  if st.button("Calculate"):
42
  results = predictor.make_a_prediction(data)
43
  print(results)