Spaces:
Sleeping
Sleeping
Commit ·
f016d43
1
Parent(s): 2b67fc3
test_interface
Browse files
app.py
CHANGED
|
@@ -104,7 +104,7 @@ import streamlit as st
|
|
| 104 |
import pandas as pd
|
| 105 |
import pickle
|
| 106 |
# Load Model
|
| 107 |
-
model = pickle.load(open('logreg_model.pkl', 'rb'))
|
| 108 |
st.title('Iris Variety Prediction')
|
| 109 |
# Form
|
| 110 |
with st.form(key='form_parameters'):
|
|
@@ -121,8 +121,4 @@ data_inf = {
|
|
| 121 |
'petal.length': petal_length,
|
| 122 |
'petal.width': petal_width
|
| 123 |
}
|
| 124 |
-
data_inf = pd.DataFrame([data_inf])
|
| 125 |
-
if submitted:
|
| 126 |
-
# Predict using Logistic Regression
|
| 127 |
-
y_pred_inf = model.predict(data_inf)
|
| 128 |
-
st.write('## Iris Variety = '+ str(y_pred_inf))
|
|
|
|
| 104 |
import pandas as pd
|
| 105 |
import pickle
|
| 106 |
# Load Model
|
| 107 |
+
#model = pickle.load(open('logreg_model.pkl', 'rb'))
|
| 108 |
st.title('Iris Variety Prediction')
|
| 109 |
# Form
|
| 110 |
with st.form(key='form_parameters'):
|
|
|
|
| 121 |
'petal.length': petal_length,
|
| 122 |
'petal.width': petal_width
|
| 123 |
}
|
| 124 |
+
data_inf = pd.DataFrame([data_inf])
|
|
|
|
|
|
|
|
|
|
|
|