kbg05204 commited on
Commit
ae7d977
ยท
verified ยท
1 Parent(s): b585dd7

Upload 5 files

Browse files
Files changed (5) hide show
  1. Dockerfile +6 -9
  2. data/.gitkeep +0 -0
  3. faiss_index/.gitkeep +0 -0
  4. requirements.txt +14 -2
  5. src/app.py +15 -0
Dockerfile CHANGED
@@ -2,19 +2,16 @@ FROM python:3.13.5-slim
2
 
3
  WORKDIR /app
4
 
5
- RUN apt-get update && apt-get install -y \
6
- build-essential \
7
- curl \
8
- git \
9
- && rm -rf /var/lib/apt/lists/*
10
-
11
  COPY requirements.txt ./
12
- COPY src/ ./src/
13
 
14
- RUN pip3 install -r requirements.txt
 
 
 
 
15
 
16
  EXPOSE 8501
17
 
18
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
19
 
20
- ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
2
 
3
  WORKDIR /app
4
 
 
 
 
 
 
 
5
  COPY requirements.txt ./
 
6
 
7
+ RUN pip3 install --no-cache-dir -r requirements.txt
8
+
9
+ COPY src/ ./src/
10
+ COPY data/ ./data/
11
+ COPY faiss_index/ ./faiss_index/
12
 
13
  EXPOSE 8501
14
 
15
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
16
 
17
+ ENTRYPOINT ["streamlit", "run", "src/app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableCORS=false", "--server.enableXsrfProtection=false"]
data/.gitkeep ADDED
File without changes
faiss_index/.gitkeep ADDED
File without changes
requirements.txt CHANGED
@@ -1,3 +1,15 @@
1
- altair
2
  pandas
3
- streamlit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  pandas
2
+ numpy
3
+ streamlit
4
+ openai
5
+ typing
6
+ requests
7
+ langchain_openai
8
+ langchain_core
9
+ langchain_community
10
+ langchain-text-splitters
11
+ langgraph
12
+ rank_bm25
13
+ faiss-cpu
14
+ pymupdf
15
+ tiktoken
src/app.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ # ํŽ˜์ด์ง€ ์„ค์ •
4
+ st.set_page_config(
5
+ page_title="Welcome",
6
+ page_icon="๐Ÿ‘‹"
7
+ )
8
+
9
+ # ํ™”๋ฉด ์ถœ๋ ฅ
10
+ st.title("๐Ÿ‘‹ Welcome!")
11
+
12
+ st.write("Hugging Face Space์— ์˜ค์‹  ๊ฒƒ์„ ํ™˜์˜ํ•ฉ๋‹ˆ๋‹ค.")
13
+ st.write("์ด ํ™”๋ฉด์€ Streamlit์œผ๋กœ ๋งŒ๋“  ๊ฐ„๋‹จํ•œ ํ…Œ์ŠคํŠธ ํ™”๋ฉด์ž…๋‹ˆ๋‹ค.")
14
+
15
+ st.success("์ •์ƒ์ ์œผ๋กœ ์‹คํ–‰๋˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค ๐Ÿš€")