-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7d839b7
commit e3c00c7
Showing
3 changed files
with
60 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Process New Videos | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'videos/**/*.json' | ||
schedule: | ||
- cron: '0 */6 * * *' | ||
|
||
jobs: | ||
process: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- name: Process Videos | ||
run: python implementation/video-processor.py |
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,27 @@ | ||
import asyncio | ||
from typing import Dict, List | ||
|
||
async def process_video(video_id: str) -> Dict: | ||
# Get transcript | ||
transcript = await get_transcript(video_id) | ||
|
||
# Process content | ||
content = { | ||
'segments': [], | ||
'insights': { | ||
'business': [], | ||
'technical': [], | ||
'distribution': [] | ||
}, | ||
'patterns': [] | ||
} | ||
|
||
return content | ||
|
||
async def extract_insights(transcript: str) -> List: | ||
# Extract key insights | ||
return [] | ||
|
||
async def analyze_patterns(transcript: str) -> List: | ||
# Analyze content patterns | ||
return [] |
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 @@ | ||
{ | ||
"videos": [ | ||
{ | ||
"title": "3 AI app ideas that are goldmines", | ||
"video_id": "pending", | ||
"date": "2024-01", | ||
"status": "queued", | ||
"type": "tutorial", | ||
"insights": { | ||
"business": [], | ||
"technical": [], | ||
"distribution": [] | ||
} | ||
} | ||
] | ||
} |