tracyshen301 commited on
Commit
ddd550f
·
1 Parent(s): ca1a2dd

Add Dockerfile for custom Python environment on Hugging Face Spaces

Browse files
Files changed (4) hide show
  1. .dockerignore +19 -0
  2. Dockerfile +19 -0
  3. README.md +12 -0
  4. pyproject.toml +1 -0
.dockerignore ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .git
2
+ .gitignore
3
+ .gitattributes
4
+ .vscode/
5
+ .idea/
6
+ __pycache__/
7
+ *.pyc
8
+ *.pyo
9
+ *.pyd
10
+ .DS_Store
11
+ Thumbs.db
12
+ .venv/
13
+ venv/
14
+ env/
15
+ ENV/
16
+ .env
17
+ travel_data_index/
18
+ *.log
19
+ logs/
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.13-bookworm
2
+
3
+ ENV PYTHONUNBUFFERED=1 \
4
+ PIP_NO_CACHE_DIR=off \
5
+ PIP_DISABLE_PIP_VERSION_CHECK=on \
6
+ PIP_DEFAULT_TIMEOUT=100
7
+
8
+ WORKDIR /app
9
+
10
+ RUN python -m pip install --upgrade pip
11
+ RUN pip install --no-cache-dir uv
12
+
13
+ COPY pyproject.toml uv.lock* ./
14
+ RUN uv pip sync --system pyproject.toml --no-cache --verbose
15
+
16
+ COPY . .
17
+
18
+ EXPOSE 7860
19
+ CMD ["python", "app.py"]
README.md CHANGED
@@ -1,3 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
  # ✈️🌍 PersonaTrip Agent - My Personalized Travel Planning & Community Insights AI Assistant! 🚀
2
 
3
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
 
1
+ ---
2
+ title: PersonaTrip Agent
3
+ emoji: ✈️
4
+ colorFrom: indigo
5
+ colorTo: purple
6
+ sdk: docker
7
+ python_version: "3.13"
8
+ app_file: app.py
9
+ app_port: 7860
10
+ pinned: false
11
+ ---
12
+
13
  # ✈️🌍 PersonaTrip Agent - My Personalized Travel Planning & Community Insights AI Assistant! 🚀
14
 
15
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
pyproject.toml CHANGED
@@ -37,6 +37,7 @@ dependencies = [
37
  "llama-index-embeddings-huggingface>=0.5.4",
38
  "sentence-transformers>=4.1.0",
39
  "tavily-python>=0.7.5",
 
40
  ]
41
 
42
  [tool.ui]
 
37
  "llama-index-embeddings-huggingface>=0.5.4",
38
  "sentence-transformers>=4.1.0",
39
  "tavily-python>=0.7.5",
40
+
41
  ]
42
 
43
  [tool.ui]