Skip to content

Commit

Permalink
use lock file
Browse files Browse the repository at this point in the history
  • Loading branch information
knowsuchagency committed Oct 17, 2024
1 parent ccc321b commit aba3934
Show file tree
Hide file tree
Showing 6 changed files with 1,687 additions and 16 deletions.
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
FROM python:3.12-slim

WORKDIR /app

RUN pip install uv
RUN uv venv

COPY requirements.txt .
RUN uv pip install -r requirements.txt
COPY pyproject.toml uv.lock ./
RUN uv sync

COPY . .

CMD .venv/bin/granian --interface asgi --port 8080 --host 0.0.0.0 main:app
CMD uv run granian --interface asgi --port 8000 --host 0.0.0.0 main:app
12 changes: 9 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ services:
web:
build: .
ports:
- "8080:8080"
- "8000:8000"
environment:
GEMINI_API_KEY: ${GEMINI_API_KEY}

OPENAI_API_KEY: ${OPENAI_API_KEY}
SENTRY_DSN: ${SENTRY_DSN}
PROMPTIC_DEBUG: ${PROMPTIC_DEBUG}
volumes:
- gradio_cache:/app/.gradio/gradio_cached_examples

volumes:
gradio_cache:
17 changes: 17 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[project]
name = "pdf-to-podcast"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"google-generativeai>=0.8.3",
"gradio>=5.1.0",
"granian>=1.6.1",
"loguru>=0.7.2",
"promptic>=0.7.7",
"pydantic>=2.9.2",
"pypdf>=5.0.1",
"sentry-sdk>=2.16.0",
"tenacity>=9.0.0",
]
9 changes: 0 additions & 9 deletions requirements.txt

This file was deleted.

Loading

0 comments on commit aba3934

Please sign in to comment.