RajendrakumarPachaiappan commited on
Commit
692a86a
·
verified ·
1 Parent(s): 9681c0a

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. Dockerfile +2 -2
  2. app.py +1 -1
  3. extraa_learn_project.pkl +1 -1
Dockerfile CHANGED
@@ -3,11 +3,11 @@ FROM python:3.9-slim
3
  # Set the working directory inside the container
4
  WORKDIR /app
5
 
6
- # Set environment variables for Python behavior
7
  ENV PYTHONDONTWRITEBYTECODE=1
8
  ENV PYTHONUNBUFFERED=1
9
 
10
- # Install OS dependencies (optional but useful for SSL, timezones, etc.)
11
  RUN apt-get update && apt-get install -y --no-install-recommends \
12
  ca-certificates curl && \
13
  rm -rf /var/lib/apt/lists/*
 
3
  # Set the working directory inside the container
4
  WORKDIR /app
5
 
6
+ # Set environment variables
7
  ENV PYTHONDONTWRITEBYTECODE=1
8
  ENV PYTHONUNBUFFERED=1
9
 
10
+ # Install OS dependencies
11
  RUN apt-get update && apt-get install -y --no-install-recommends \
12
  ca-certificates curl && \
13
  rm -rf /var/lib/apt/lists/*
app.py CHANGED
@@ -34,7 +34,7 @@ if st.button("Predict"):
34
  response = requests.post(BACKEND_URL, json=payload)
35
  if response.status_code == 200:
36
  result = response.json()
37
- prediction = "Likely to Convert" if result["prediction"] == 1 else "Unlikely to Convert"
38
  st.success(f"**Prediction:** {prediction}")
39
  st.info(f"Confidence: {result['confidence']:.2f}")
40
  else:
 
34
  response = requests.post(BACKEND_URL, json=payload)
35
  if response.status_code == 200:
36
  result = response.json()
37
+ prediction = "Likely to Convert" if result["prediction"] == 1 else "Unlikely to Convert"
38
  st.success(f"**Prediction:** {prediction}")
39
  st.info(f"Confidence: {result['confidence']:.2f}")
40
  else:
extraa_learn_project.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8e66af46422fc5783329b1bb171dd12e420b9282bba603cae80dd446e4ed2686
3
  size 5782930
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2643d4d0cd325d121bdbba2826f987fc567cc19c289bb15d711d790700dbf551
3
  size 5782930