Upload folder using huggingface_hub
Browse files- Dockerfile +1 -1
- app.py +1 -1
Dockerfile
CHANGED
|
@@ -4,7 +4,7 @@ FROM python:3.9-slim
|
|
| 4 |
WORKDIR /app
|
| 5 |
|
| 6 |
# Copy all files from the current directory to the container's working directory
|
| 7 |
-
COPY /content/drive/MyDrive/
|
| 8 |
|
| 9 |
# Install dependencies from the requirements file without using cache to reduce image size
|
| 10 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
|
|
| 4 |
WORKDIR /app
|
| 5 |
|
| 6 |
# Copy all files from the current directory to the container's working directory
|
| 7 |
+
COPY /content/drive/MyDrive/Models/SuperKart/rf/backend_files/* .
|
| 8 |
|
| 9 |
# Install dependencies from the requirements file without using cache to reduce image size
|
| 10 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
app.py
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
rf_superkart_prediction_api = Flask("SuperKart Sales Prediction with Random Forest")
|
| 4 |
|
| 5 |
# Load the trained machine learning model
|
| 6 |
-
rf_model = joblib.load("/content/drive/MyDrive/
|
| 7 |
|
| 8 |
# Define a route for the home page (GET request)
|
| 9 |
@rf_superkart_prediction_api.get('/')
|
|
|
|
| 3 |
rf_superkart_prediction_api = Flask("SuperKart Sales Prediction with Random Forest")
|
| 4 |
|
| 5 |
# Load the trained machine learning model
|
| 6 |
+
rf_model = joblib.load("/content/drive/MyDrive/Models/SuperKart/rf/backend_files/superkart_sales_prediction_model_v1_0.joblib")
|
| 7 |
|
| 8 |
# Define a route for the home page (GET request)
|
| 9 |
@rf_superkart_prediction_api.get('/')
|