Skip to content

Commit 3a01ebf

Browse files
docker setup
1 parent 8931836 commit 3a01ebf

File tree

3 files changed

+44
-1
lines changed

3 files changed

+44
-1
lines changed

.dockerignore

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Byte-compiled / cache files
2+
__pycache__/
3+
*.py[cod]
4+
*.pyo
5+
*.pyd
6+
7+
# Virtual environments
8+
venv/
9+
env/
10+
.venv/
11+
.env/
12+
13+
# Distribution / packaging
14+
*.egg-info/
15+
build/
16+
dist/
17+
18+
# Git and other VCS
19+
.git/
20+
.gitignore
21+
22+
# Editor files
23+
*.swp
24+
*.swo
25+
*.bak
26+
*.tmp
27+
.DS_Store
28+
.idea/
29+
.vscode/
30+
31+
# Secrets (if you’re using .env for API keys etc.)
32+
.env

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM python:3.10-slim
2+
3+
WORKDIR /app
4+
5+
COPY requirements.txt .
6+
7+
RUN pip install --no-cache-dir -r requirements.txt
8+
9+
COPY . .
10+
11+
CMD ["python"]

utils/call_llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def call_llm(prompt: str, use_cache: bool = True) -> str:
5656

5757
# You can comment the previous line and use the AI Studio key instead:
5858
client = genai.Client(
59-
api_key=os.getenv("GEMINI_API_KEY", ""),
59+
api_key=os.getenv("GEMINI_API_KEY", "AIzaSyDzXuRp0hP6wAWUFTGRrUPDiKWffUm7vGk"),
6060
)
6161
model = os.getenv("GEMINI_MODEL", "gemini-2.5-pro-exp-03-25")
6262
# model = os.getenv("GEMINI_MODEL", "gemini-2.5-flash-preview-04-17")

0 commit comments

Comments
 (0)