Aomsin commited on
Commit
6d97fff
·
1 Parent(s): 8111a13

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -20
app.py CHANGED
@@ -1,26 +1,8 @@
1
  import joblib
2
  import pandas as pd
 
3
 
4
-
5
- EDU_DICT = {'Preschool': 1,
6
- '1st-4th': 2,
7
- '5th-6th': 3,
8
- '7th-8th': 4,
9
- '9th': 5,
10
- '10th': 6,
11
- '11th': 7,
12
- '12th': 8,
13
- 'HS-grad': 9,
14
- 'Some-college': 10,
15
- 'Assoc-voc': 11,
16
- 'Assoc-acdm': 12,
17
- 'Bachelors': 13,
18
- 'Masters': 14,
19
- 'Prof-school': 15,
20
- 'Doctorate': 16
21
- }
22
-
23
- model = #
24
  unique_values = #
25
 
26
  unique_class = unique_values["workclass"]
 
1
  import joblib
2
  import pandas as pd
3
+ import streamlit as st
4
 
5
+ model = joblib.load('model.joblib')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  unique_values = #
7
 
8
  unique_class = unique_values["workclass"]