Upload folder using huggingface_hub
Browse files- Dockerfile +2 -2
- app.py +1 -1
- 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
|
| 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/*
|
|
|
|
| 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 = "
|
| 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:
|
| 3 |
size 5782930
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2643d4d0cd325d121bdbba2826f987fc567cc19c289bb15d711d790700dbf551
|
| 3 |
size 5782930
|