nagur-shareef-shaik commited on
Commit
8d7a112
·
1 Parent(s): 1dddc2c

Updated app.py

Browse files
Files changed (2) hide show
  1. Dockerfile +4 -0
  2. frontend/app.py +2 -2
Dockerfile CHANGED
@@ -18,5 +18,9 @@ RUN pip install --no-cache-dir --upgrade pip \
18
 
19
  RUN ls -R /insucompass
20
 
 
 
 
 
21
  COPY --chown=user . /insucompass
22
  CMD ["python", "-m", "uvicorn", "insucompass.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
18
 
19
  RUN ls -R /insucompass
20
 
21
+ EXPOSE 7860
22
+
23
+ HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
24
+
25
  COPY --chown=user . /insucompass
26
  CMD ["python", "-m", "uvicorn", "insucompass.main:app", "--host", "0.0.0.0", "--port", "7860"]
frontend/app.py CHANGED
@@ -27,8 +27,8 @@ st.set_page_config(
27
  )
28
 
29
  # --- Header ---
30
- LOGO_PATH = Path("InsuCompass_Logo.png")
31
- INSU_AVATAR = "robot-chat.jpg"
32
  # Create two columns
33
  col1, col2 = st.columns([0.4, 5]) # Adjust the width ratio as needed
34
  with col1:
 
27
  )
28
 
29
  # --- Header ---
30
+ LOGO_PATH = Path(__file__).parent / "assets" / "InsuCompass_Logo.png"
31
+ INSU_AVATAR = Path(__file__).parent / "assets" / "robot-chat.jpg"
32
  # Create two columns
33
  col1, col2 = st.columns([0.4, 5]) # Adjust the width ratio as needed
34
  with col1: