Upload folder using huggingface_hub
Browse files- Dockerfile +3 -3
- app.py +1 -1
- superkart_app_v1_0.joblib +3 -0
Dockerfile
CHANGED
|
@@ -1,13 +1,13 @@
|
|
| 1 |
FROM python:3.9-slim
|
| 2 |
|
| 3 |
# Set the working directory inside the container
|
| 4 |
-
WORKDIR /app
|
| 5 |
|
| 6 |
# Copy all files from the current directory to the container's working directory
|
| 7 |
-
COPY . .
|
| 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
|
| 11 |
|
| 12 |
# Define the command to start the application using Gunicorn with 4 worker processes
|
| 13 |
# - `-w 4`: Uses 4 worker processes for handling requests
|
|
|
|
| 1 |
FROM python:3.9-slim
|
| 2 |
|
| 3 |
# Set the working directory inside the container
|
| 4 |
+
WORKDIR /app
|
| 5 |
|
| 6 |
# Copy all files from the current directory to the container's working directory
|
| 7 |
+
COPY . .
|
| 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
|
| 11 |
|
| 12 |
# Define the command to start the application using Gunicorn with 4 worker processes
|
| 13 |
# - `-w 4`: Uses 4 worker processes for handling requests
|
app.py
CHANGED
|
@@ -9,7 +9,7 @@ from flask import Flask, request, jsonify # For creating the Flask API
|
|
| 9 |
superkart_api = Flask("SuperKart Predictor") #Complete the code to define the name of the app
|
| 10 |
|
| 11 |
# Load the trained prediction model
|
| 12 |
-
model = joblib.load("
|
| 13 |
|
| 14 |
# Define a route for the home page
|
| 15 |
@superkart_api.get('/')
|
|
|
|
| 9 |
superkart_api = Flask("SuperKart Predictor") #Complete the code to define the name of the app
|
| 10 |
|
| 11 |
# Load the trained prediction model
|
| 12 |
+
model = joblib.load("superkart_app_v1_0.joblib") #Complete the code to define the location of the serialized model
|
| 13 |
|
| 14 |
# Define a route for the home page
|
| 15 |
@superkart_api.get('/')
|
superkart_app_v1_0.joblib
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:99c6dae724f98612d7c44debb93ec0d93e023f7f8c86fec4cad6c1232a662517
|
| 3 |
+
size 1042112
|