Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import pickle
|
|
2 |
import gradio as gr
|
3 |
|
4 |
# Load the pickled model
|
5 |
-
|
6 |
|
7 |
# Define the function for making predictions
|
8 |
def salarybracket(age, workclass, education, education_num, marital_status, occupation, relationship, race, gender, capital_gain, capital_loss, hours_per_week, native_country):
|
|
|
2 |
import gradio as gr
|
3 |
|
4 |
# Load the pickled model
|
5 |
+
model = tf.keras.models.load_model("census.h5")
|
6 |
|
7 |
# Define the function for making predictions
|
8 |
def salarybracket(age, workclass, education, education_num, marital_status, occupation, relationship, race, gender, capital_gain, capital_loss, hours_per_week, native_country):
|