molinari135 commited on
Commit
f602f1c
1 Parent(s): 15d41d0

Update product_return_prediction/api.py

Browse files
Files changed (1) hide show
  1. product_return_prediction/api.py +1 -1
product_return_prediction/api.py CHANGED
@@ -117,7 +117,7 @@ async def predict(products: ProductRequest):
117
  scaler_file: Path = MODELS_DIR / "scaler.pkl"
118
 
119
  hf_token = os.getenv("inventory_data")
120
- inventory_data = load_dataset("molinari135/armani-inventory", token=hf_token, data_files="inventory.tsv")
121
  inventory = pd.DataFrame(dataset['train'])
122
 
123
  filtered_inventory = filter_inventory_by_combinations(
 
117
  scaler_file: Path = MODELS_DIR / "scaler.pkl"
118
 
119
  hf_token = os.getenv("inventory_data")
120
+ dataset = load_dataset("molinari135/armani-inventory", token=hf_token, data_files="inventory.tsv")
121
  inventory = pd.DataFrame(dataset['train'])
122
 
123
  filtered_inventory = filter_inventory_by_combinations(