Files changed (2) hide show
  1. Dockerfile +2 -2
  2. app.py +1 -1
Dockerfile CHANGED
@@ -9,11 +9,11 @@ COPY . .
9
 
10
  # Install necessary libraries
11
  # We include 'requests' so the frontend can talk to your backend API
12
- RUN pip install --no-cache-dir -r requirements.txt
13
 
14
  # Hugging Face Spaces requires the app to listen on port 7860
15
  EXPOSE 7860
16
 
17
  # Command to run the Streamlit app
18
  # --server.address=0.0.0.0 is critical for Docker networking
19
- CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
 
9
 
10
  # Install necessary libraries
11
  # We include 'requests' so the frontend can talk to your backend API
12
+ RUN pip install --no-cache-dir streamlit requests pandas numpy
13
 
14
  # Hugging Face Spaces requires the app to listen on port 7860
15
  EXPOSE 7860
16
 
17
  # Command to run the Streamlit app
18
  # --server.address=0.0.0.0 is critical for Docker networking
19
+ CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
app.py CHANGED
@@ -142,4 +142,4 @@ if st.button("Predict Sales", type="primary"):
142
  st.code(response.text)
143
 
144
  except Exception as e:
145
- st.error(f"Connection Error ❌\n\n{e}")
 
142
  st.code(response.text)
143
 
144
  except Exception as e:
145
+ st.error(f"Connection Error ❌\n\n{e}")