truglpk3 commited on
Commit
2ad412a
·
verified ·
1 Parent(s): 77eb34e

Upload 6 files

Browse files
Files changed (6) hide show
  1. .env +4 -0
  2. .gitignore +13 -0
  3. Dockerfile +13 -0
  4. README.md +1 -11
  5. app.py +1 -0
  6. requirements.txt +17 -0
.env ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ DEEPSEEK_API_KEY=sk-0fde229ff9854ada814c2553c787d721
2
+ ELASTIC_API_KEY=MW9QZm1aa0JkWjBPRkFiaUFwc0Q6T1cycFlqbVVXbzR6OWM0Tm1CeW1GQQ
3
+ ELASTIC_CLOUD_URL=https://datnvdb-a564ef.es.australiaeast.azure.elastic.cloud:443
4
+ PINECONE_API_KEY=pcsk_22nKGg_MA6xgCafiT145gfdVQV2dPka1vYEDZg8t3DaAcKhoWvV46PwnikPW71aY6nMAxh
.gitignore ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ env/
2
+ venv/
3
+ .venv/
4
+
5
+ .env
6
+ .env.*
7
+ *.env
8
+
9
+ __pycache__/
10
+
11
+ collection
12
+ createDB
13
+ database
Dockerfile ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ RUN useradd -m -u 1000 user
4
+ USER user
5
+ ENV PATH="/home/user/.local/bin:$PATH"
6
+
7
+ WORKDIR /app
8
+
9
+ COPY --chown=user ./requirements.txt requirements.txt
10
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
11
+
12
+ COPY --chown=user . /app
13
+ CMD ["uvicorn", "chatbot.main:app", "--host", "0.0.0.0", "--port", "7860"]
README.md CHANGED
@@ -1,11 +1 @@
1
- ---
2
- title: Datn Fastapi
3
- emoji: 🚀
4
- colorFrom: red
5
- colorTo: indigo
6
- sdk: docker
7
- pinned: false
8
- license: mit
9
- ---
10
-
11
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
+ # Server_AI_DATN
 
 
 
 
 
 
 
 
 
 
app.py ADDED
@@ -0,0 +1 @@
 
 
1
+ from chatbot.main import app
requirements.txt ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ beautifulsoup4==4.13.4
2
+ requests==2.32.5
3
+ psycopg2==2.9.10
4
+ tqdm== 4.67.1
5
+ pandas==2.3.1
6
+ sentence_transformers==5.1.2
7
+ langchain==0.3.27
8
+ langchain_community==0.3.31
9
+ langgraph==0.2.20
10
+ openai==1.109.1
11
+ tiktoken==0.12.0
12
+ langchain-deepseek==0.1.4
13
+ langchain-elasticsearch==0.3.0
14
+ elasticsearch==8.19.1
15
+ lark==1.3.1
16
+ fastapi==0.121.0
17
+ uvicorn[standard]==0.38.0