-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PowerPoint Video Extractor #1
Open
pulgamecanica
wants to merge
26
commits into
SlideSpeak:main
Choose a base branch
from
pulgamecanica:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
a8b7487
docs: reword challenge for video extractor tool
kgoedecke 0ed764c
chore: Dockerize bun application
pulgamecanica ecc96bc
docs: Update frontend README.md to add Docker instructions
pulgamecanica 864615a
chore: Created FastAPI application directory and main
pulgamecanica eba5fa6
chore: Dockerized FastAPI server, Redis server + unoserver
pulgamecanica c7ff14d
docs: Added to README -> pulgamecanica walkthrough part 1
pulgamecanica 325b595
chore: extract_videos.py tool is working
pulgamecanica d1f107d
fix: fixed typo on frontend README
pulgamecanica 11a9c86
chore: Added __pycache__ to gitignore
pulgamecanica ef06331
chore: Enable celery
pulgamecanica ad72e1d
fix: Remove unused files
pulgamecanica 15e3609
chore: Added frontend functionalities
pulgamecanica c9328f2
chore: Merge branch 'front' into pulga-challenge
pulgamecanica a1c3626
chore: Added CORS settings to allow frontend endpoint call
pulgamecanica 5305d08
chore: Fixed typo and improoved videos list style
pulgamecanica 5924827
chore: Replace PDF icon by VideoIcon
pulgamecanica 07fbdbe
docs: Added CORS section to README
pulgamecanica d217cc6
feat(SLI-91): add celery worker to docker compose (#8)
pulgamecanica c829037
fix(sli-90): add celery queuing (#9)
pulgamecanica 7b43885
feat(SLI-89): add robust try-except blocks (#10)
pulgamecanica 7093ff7
feat(SLI-88) (#11)
pulgamecanica f367d8b
chore: implement uuid4() for unique file names (#12)
pulgamecanica 3f132bf
chore: add versions to requirements.txt pip packages
pulgamecanica c29fec0
feat(SLI-85): conversion step with loading and disable states
pulgamecanica cbcbb13
chore: update python base image for docker
pulgamecanica 0fdca9b
chore: add .env.local.example and implement backend-url as env var
pulgamecanica File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
AWS_ACCESS_KEY=<your-aws-access-key> | ||
AWS_SECRET_KEY=<your-aws-secret-key> | ||
S3_BUCKET_NAME=<your-bucket-name> | ||
AWS_REGION=<your-aws-bucket-region> | ||
CELERY_BROKER_URL=redis://redis:6379/0 | ||
CELERY_BACKEND_URL=redis://redis:6379/0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.env | ||
app/__pycache__ | ||
app/__pycache__/* | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM python:3.12-slim-bookworm | ||
|
||
WORKDIR /app | ||
|
||
# Install system dependencies (unzip) | ||
RUN apt-get update && apt-get install -y unzip | ||
|
||
# Install Python dependencies | ||
COPY requirements.txt . | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
# Copy application code | ||
COPY ./app /app | ||
|
||
# Run the FastAPI app | ||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM python:3.12-slim-bookworm | ||
|
||
WORKDIR /app | ||
|
||
# Install system dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
unzip \ | ||
gcc \ | ||
libffi-dev \ | ||
musl-dev \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Copy & Install Python dependencies | ||
COPY requirements.txt requirements.txt | ||
COPY requirements-dev.txt requirements-dev.txt | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
RUN pip install --no-cache-dir -r requirements-dev.txt | ||
|
||
# Copy application code | ||
COPY ./app /app | ||
|
||
# Run Celery worker with watchdog | ||
CMD ["watchmedo", "auto-restart", "-d", ".", "-R", "-p", "*.py", "--debug-force-polling", "--", "celery", "-A", "video_extractor.celery", "worker", "--loglevel=info", "-c", "16"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM python:3.12-slim-bookworm | ||
|
||
WORKDIR /app | ||
|
||
# Install system dependencies (unzip) | ||
RUN apt-get update && apt-get install -y unzip | ||
|
||
# Install Python dependencies | ||
COPY requirements.txt . | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
# Copy application code | ||
COPY ./app /app | ||
|
||
# Run the FastAPI app | ||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--proxy-headers"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM python:3.12-slim-bookworm | ||
|
||
WORKDIR /app | ||
|
||
# Install system dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
unzip \ | ||
gcc \ | ||
libffi-dev \ | ||
musl-dev \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Install Python dependencies | ||
COPY requirements.txt requirements.txt | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
# Copy application code | ||
COPY ./app /app | ||
|
||
# Set the default command to run Celery worker | ||
CMD ["celery", "-A", "video_extractor.celery", "worker", "--loglevel=info", "-c", "16"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import os | ||
|
||
# S3 Configuration | ||
AWS_ACCESS_KEY = os.getenv("AWS_ACCESS_KEY") | ||
AWS_SECRET_KEY = os.getenv("AWS_SECRET_KEY") | ||
S3_BUCKET_NAME = os.getenv("S3_BUCKET_NAME") | ||
AWS_REGION = os.getenv("AWS_REGION") | ||
|
||
# Celery Configuration | ||
CELERY_BROKER_URL = os.getenv("CELERY_BROKER_URL", "redis://redis:6379/0") | ||
CELERY_BACKEND_URL = os.getenv("CELERY_BACKEND_URL", "redis://redis:6379/0") | ||
|
||
# Local Directories | ||
LOCAL_DOCUMENTS_DIR = "shared_tmp" | ||
|
||
# Task Settings | ||
MAX_CONVERT_TRIES = 5 | ||
SOFT_TIME_LIMIT = 120 | ||
TIME_LIMIT = 300 | ||
|
||
# CORS Settings | ||
ALLOWED_ORIGINS = [ | ||
"https://slidespeak.co", | ||
"http://localhost:3000", | ||
] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add common folders like .idea and .vscode to this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea! will implement this.