7sugiwa commited on
Commit
2998f77
1 Parent(s): a17c8eb

Upload 4 files

Browse files
Files changed (2) hide show
  1. app.py +2 -1
  2. prediction.py +2 -1
app.py CHANGED
@@ -13,7 +13,8 @@ from eda import (average_sales_by_region, average_sales_and_profit_over_time,
13
 
14
  from prediction import make_prediction
15
 
16
- import transformers
 
17
 
18
  # Load the dataset for EDA
19
  @st.cache_data
 
13
 
14
  from prediction import make_prediction
15
 
16
+ # In your model training script and your Streamlit app script (app.py)
17
+ from transformers import UnitPriceTransformer, KMeansAndLabelTransformer, DynamicOneHotEncoder
18
 
19
  # Load the dataset for EDA
20
  @st.cache_data
prediction.py CHANGED
@@ -1,6 +1,7 @@
1
  import pickle
2
  import pandas as pd
3
- import transformers
 
4
 
5
  # Load the pipeline and model
6
  # Load the pipeline object from the file
 
1
  import pickle
2
  import pandas as pd
3
+ # In your model training script and your Streamlit app script (app.py)
4
+ from transformers import UnitPriceTransformer, KMeansAndLabelTransformer, DynamicOneHotEncoder
5
 
6
  # Load the pipeline and model
7
  # Load the pipeline object from the file