Santhu976 commited on
Commit
9beefaa
·
verified ·
1 Parent(s): a7008fa

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. app.py +1 -1
Dockerfile CHANGED
@@ -11,6 +11,6 @@ COPY . .
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=7860", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]
15
 
16
  # NOTE: Disable XSRF protection for easier external access in order to make batch predictions
 
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
 
16
  # NOTE: Disable XSRF protection for easier external access in order to make batch predictions
app.py CHANGED
@@ -72,7 +72,7 @@ if st.button("Predict"):
72
  response = requests.post("https://Santhu976-ProdStoreSalesTotalPredictionBackend.hf.space/v1/sales", json=input_data.to_dict(orient='records')[0])
73
  if response.status_code == 200:
74
  prediction = response.json()['Predicted Price']
75
- st.success(f"Predicted Product_Store_Sales_Total: {prediction}")
76
  else:
77
  st.error("Error making prediction.")
78
 
 
72
  response = requests.post("https://Santhu976-ProdStoreSalesTotalPredictionBackend.hf.space/v1/sales", json=input_data.to_dict(orient='records')[0])
73
  if response.status_code == 200:
74
  prediction = response.json()['Predicted Price']
75
+ st.success(f"Predicted Product_Store_Sales_Total: {prediction}")
76
  else:
77
  st.error("Error making prediction.")
78