adityasharma0511 commited on
Commit
5f735b6
·
verified ·
1 Parent(s): 4ae3083

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. Dockerfile +3 -0
  2. app.py +9 -9
Dockerfile CHANGED
@@ -10,6 +10,9 @@ COPY . .
10
  # Install Python dependencies listed in requirements.txt
11
  RUN pip3 install -r requirements.txt
12
 
 
 
 
13
  # Define the command to run the Streamlit app on port 8501 and make it accessible externally
14
  CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]
15
 
 
10
  # Install Python dependencies listed in requirements.txt
11
  RUN pip3 install -r requirements.txt
12
 
13
+ # Disable telemetry
14
+ ENV STREAMLIT_BROWSER_GATHERUSAGESTATS=false
15
+
16
  # Define the command to run the Streamlit app on port 8501 and make it accessible externally
17
  CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]
18
 
app.py CHANGED
@@ -24,15 +24,15 @@ Store_Establishment_Year = st.number_input("Store_Establishment_Year", min_value
24
 
25
  # Convert user input into a DataFrame
26
  input_data = pd.DataFrame([{
27
- 'Product_Weight':Product_Weight
28
- 'Product_Sugar_Content':Product_Sugar_Content
29
- 'Product_Allocated_Area':Product_Allocated_Area
30
- 'Product_Type':Product_Type
31
- 'Product_MRP':Product_MRP
32
- 'Store_Id':Store_Id
33
- 'Store_Establishment_Year':Store_Establishment_Year
34
- 'Store_Size':Store_Size
35
- 'Store_Location_City_Type':Store_Location_City_Type
36
  'Store_Type':Store_Type
37
  }])
38
 
 
24
 
25
  # Convert user input into a DataFrame
26
  input_data = pd.DataFrame([{
27
+ 'Product_Weight':Product_Weight,
28
+ 'Product_Sugar_Content':Product_Sugar_Content,
29
+ 'Product_Allocated_Area':Product_Allocated_Area,
30
+ 'Product_Type':Product_Type,
31
+ 'Product_MRP':Product_MRP,
32
+ 'Store_Id':Store_Id,
33
+ 'Store_Establishment_Year':Store_Establishment_Year,
34
+ 'Store_Size':Store_Size,
35
+ 'Store_Location_City_Type':Store_Location_City_Type,
36
  'Store_Type':Store_Type
37
  }])
38