Upload folder using huggingface_hub
Browse files- Dockerfile +4 -2
- app.py +4 -4
Dockerfile
CHANGED
|
@@ -14,8 +14,10 @@ RUN useradd -m -u 1000 user
|
|
| 14 |
USER user
|
| 15 |
ENV HOME=/home/user \
|
| 16 |
PATH=/home/user/.local/bin:$PATH
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
| 19 |
|
| 20 |
WORKDIR $HOME/app
|
| 21 |
|
|
|
|
| 14 |
USER user
|
| 15 |
ENV HOME=/home/user \
|
| 16 |
PATH=/home/user/.local/bin:$PATH
|
| 17 |
+
|
| 18 |
+
#Below ones don't work in huggingface streamlit spaces:
|
| 19 |
+
#ENV HUGGINGFACE_USER_NAME=${HUGGINGFACE_USER_NAME}
|
| 20 |
+
#ENV HUGGINGFACE_MODEL_NAME=${HUGGINGFACE_MODEL_NAME}
|
| 21 |
|
| 22 |
WORKDIR $HOME/app
|
| 23 |
|
app.py
CHANGED
|
@@ -37,15 +37,15 @@ with col1:
|
|
| 37 |
Age = st.number_input("Age", min_value=18, max_value=100, value=30)
|
| 38 |
Gender = st.selectbox("Gender", ["Male", "Female"])
|
| 39 |
MaritalStatus = st.selectbox("Marital Status", ["Single", "Married", "Divorced"])
|
| 40 |
-
Occupation = st.selectbox("Occupation", ['Salaried' 'Free Lancer' 'Small Business' 'Large Business'])
|
| 41 |
-
Designation = st.selectbox("Designation", ['Manager' 'Executive' 'Senior Manager' 'AVP' 'VP'])
|
| 42 |
MonthlyIncome = st.number_input("Monthly Income", min_value=0.0, value=25000.0)
|
| 43 |
CityTier = st.slider("City Tier", 1, 3, 1)
|
| 44 |
|
| 45 |
with col2:
|
| 46 |
st.subheader("Travel Behavior")
|
| 47 |
-
TypeofContact = st.selectbox("Type of Contact", ['Self Enquiry' 'Company Invited'])
|
| 48 |
-
ProductPitched = st.selectbox("Product Pitched", ['Deluxe' 'Basic' 'Standard' 'Super Deluxe' 'King'])
|
| 49 |
DurationOfPitch = st.number_input("Duration of Pitch (minutes)", min_value=0, value=15)
|
| 50 |
NumberOfFollowups = st.slider("Number of Follow-ups", 1, 10, 3)
|
| 51 |
NumberOfTrips = st.number_input("Number of Trips", min_value=0, value=2)
|
|
|
|
| 37 |
Age = st.number_input("Age", min_value=18, max_value=100, value=30)
|
| 38 |
Gender = st.selectbox("Gender", ["Male", "Female"])
|
| 39 |
MaritalStatus = st.selectbox("Marital Status", ["Single", "Married", "Divorced"])
|
| 40 |
+
Occupation = st.selectbox("Occupation", ['Salaried', 'Free Lancer', 'Small Business', 'Large Business'])
|
| 41 |
+
Designation = st.selectbox("Designation", ['Manager', 'Executive', 'Senior Manager', 'AVP', 'VP'])
|
| 42 |
MonthlyIncome = st.number_input("Monthly Income", min_value=0.0, value=25000.0)
|
| 43 |
CityTier = st.slider("City Tier", 1, 3, 1)
|
| 44 |
|
| 45 |
with col2:
|
| 46 |
st.subheader("Travel Behavior")
|
| 47 |
+
TypeofContact = st.selectbox("Type of Contact", ['Self Enquiry', 'Company Invited'])
|
| 48 |
+
ProductPitched = st.selectbox("Product Pitched", ['Deluxe', 'Basic', 'Standard', 'Super Deluxe', 'King'])
|
| 49 |
DurationOfPitch = st.number_input("Duration of Pitch (minutes)", min_value=0, value=15)
|
| 50 |
NumberOfFollowups = st.slider("Number of Follow-ups", 1, 10, 3)
|
| 51 |
NumberOfTrips = st.number_input("Number of Trips", min_value=0, value=2)
|