docker setup

This commit is contained in:
Srinadh kesineni
2025-05-11 10:03:25 +05:30
parent 89318369ad
commit 3a01ebf92e
3 changed files with 44 additions and 1 deletions
+32
View File
@@ -0,0 +1,32 @@
# Byte-compiled / cache files
__pycache__/
*.py[cod]
*.pyo
*.pyd
# Virtual environments
venv/
env/
.venv/
.env/
# Distribution / packaging
*.egg-info/
build/
dist/
# Git and other VCS
.git/
.gitignore
# Editor files
*.swp
*.swo
*.bak
*.tmp
.DS_Store
.idea/
.vscode/
# Secrets (if youre using .env for API keys etc.)
.env
+11
View File
@@ -0,0 +1,11 @@
FROM python:3.10-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["python"]
+1 -1
View File
@@ -56,7 +56,7 @@ def call_llm(prompt: str, use_cache: bool = True) -> str:
# You can comment the previous line and use the AI Studio key instead:
client = genai.Client(
api_key=os.getenv("GEMINI_API_KEY", ""),
api_key=os.getenv("GEMINI_API_KEY", "AIzaSyDzXuRp0hP6wAWUFTGRrUPDiKWffUm7vGk"),
)
model = os.getenv("GEMINI_MODEL", "gemini-2.5-pro-exp-03-25")
# model = os.getenv("GEMINI_MODEL", "gemini-2.5-flash-preview-04-17")