Spaces:
Build error
Build error
LethallyHealthy
commited on
Commit
·
1ee8b1b
1
Parent(s):
004d8b7
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
#import the necessary dependencies
|
2 |
import streamlit as st
|
3 |
from transformers import pipeline
|
4 |
-
import
|
5 |
import pandas as pd
|
6 |
import predictor
|
7 |
|
@@ -38,7 +38,7 @@ data["KitchenQual"] = st.slider("Quality of the Kitchen", 1, 5)
|
|
38 |
data["OpenPorchSF"] = st.number_input("Open Porch Square Footage:", value=0, min_value=0)
|
39 |
data["MoSold"] = st.slider("Month Sold:", 1,12)
|
40 |
|
41 |
-
|
42 |
if st.button("Calculate"):
|
43 |
results = predictor.make_a_prediction(data)
|
44 |
print(results)
|
|
|
1 |
#import the necessary dependencies
|
2 |
import streamlit as st
|
3 |
from transformers import pipeline
|
4 |
+
import numpy as np
|
5 |
import pandas as pd
|
6 |
import predictor
|
7 |
|
|
|
38 |
data["OpenPorchSF"] = st.number_input("Open Porch Square Footage:", value=0, min_value=0)
|
39 |
data["MoSold"] = st.slider("Month Sold:", 1,12)
|
40 |
|
41 |
+
#The button
|
42 |
if st.button("Calculate"):
|
43 |
results = predictor.make_a_prediction(data)
|
44 |
print(results)
|