Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from explainit.app import build
|
2 |
+
import pandas as pd
|
3 |
+
|
4 |
+
ref_data = pd.read_csv("https://raw.githubusercontent.com/katonic-dev/explainit/master/examples/data/reference_data.csv", index_col=None)
|
5 |
+
prod_data = pd.read_csv("https://raw.githubusercontent.com/katonic-dev/explainit/master/examples/data/production_data.csv", index_col=None)
|
6 |
+
|
7 |
+
build(
|
8 |
+
reference_data=ref_data,
|
9 |
+
production_data=prod_data,
|
10 |
+
target_col_name="bad_loan",
|
11 |
+
target_col_type="cat",
|
12 |
+
host="0.0.0.0",
|
13 |
+
port=7860
|
14 |
+
)
|