DaddyDaniel commited on
Commit
aca85cc
ยท
1 Parent(s): e497738

Expose port 7860

Browse files
Files changed (3) hide show
  1. Dockerfile +3 -1
  2. app.py +1 -0
  3. main.py +0 -9
Dockerfile CHANGED
@@ -30,5 +30,7 @@ RUN pip install --no-cache-dir https://github.com/mjun0812/flash-attention-prebu
30
 
31
  COPY . .
32
 
 
 
33
  # Default command
34
- ENTRYPOINT ["streamlit", "run", "app.py"]
 
30
 
31
  COPY . .
32
 
33
+ EXPOSE 7860
34
+
35
  # Default command
36
+ ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
app.py CHANGED
@@ -3,6 +3,7 @@ import os
3
  import streamlit as st
4
  from PIL import Image
5
 
 
6
  logo_path = os.path.join(os.path.dirname(__file__), "NLP_Group_logo.png")
7
  logo = Image.open(logo_path)
8
  st.logo(logo, size="large")
 
3
  import streamlit as st
4
  from PIL import Image
5
 
6
+ print("๐Ÿš€ App started")
7
  logo_path = os.path.join(os.path.dirname(__file__), "NLP_Group_logo.png")
8
  logo = Image.open(logo_path)
9
  st.logo(logo, size="large")
main.py DELETED
@@ -1,9 +0,0 @@
1
- import streamlit as st
2
-
3
- st.logo("NLP_Group_logo.svg", size="large")
4
- main_page = st.Page("main_page.py", title="Main Page", icon="๐Ÿ ")
5
- sketch2diagram_page = st.Page("sketch2diagram.py", title="Sketch2Diagram", icon="๐Ÿ–ผ๏ธ")
6
- # Add pages to the main page
7
- pg = st.navigation([main_page, sketch2diagram_page])
8
-
9
- pg.run()