Update product_return_prediction/api.py
Browse files
product_return_prediction/api.py
CHANGED
@@ -12,6 +12,10 @@ from product_return_prediction.monitoring import instrumentator
|
|
12 |
from product_return_prediction.config import MODELS_DIR, EXTERNAL_DATA_DIR
|
13 |
from huggingface_hub import hf_hub_download
|
14 |
|
|
|
|
|
|
|
|
|
15 |
app = FastAPI(
|
16 |
title="Product Return Prediction API",
|
17 |
description="This API predicts whether a product will be returned based on products and user behavior.",
|
|
|
12 |
from product_return_prediction.config import MODELS_DIR, EXTERNAL_DATA_DIR
|
13 |
from huggingface_hub import hf_hub_download
|
14 |
|
15 |
+
from huggingface_hub import login
|
16 |
+
|
17 |
+
login(token=os.getenv("HUGGINGFACE_TOKEN"))
|
18 |
+
|
19 |
app = FastAPI(
|
20 |
title="Product Return Prediction API",
|
21 |
description="This API predicts whether a product will be returned based on products and user behavior.",
|