csankaran3 commited on
Commit
e6c9914
·
verified ·
1 Parent(s): 040ef26

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. app.py +1 -0
Dockerfile CHANGED
@@ -7,7 +7,7 @@ WORKDIR /app
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
 
7
  COPY . .
8
 
9
  # Install dependencies from the requirements file without using cache to reduce image size
10
+ RUN pip install -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
@@ -54,6 +54,7 @@ def predict_sales_batch():
54
 
55
  # Read the file into a DataFrame
56
  input_data = pd.read_csv(file)
 
57
 
58
  # Make predictions for the batch data and convert raw predictions into a readable format
59
  predicted_sales = [round(float(sales),2) for sales in model.predict(input_data).tolist()]
 
54
 
55
  # Read the file into a DataFrame
56
  input_data = pd.read_csv(file)
57
+ input_data.head()
58
 
59
  # Make predictions for the batch data and convert raw predictions into a readable format
60
  predicted_sales = [round(float(sales),2) for sales in model.predict(input_data).tolist()]