יצירת תגים עבור שורות 30000-40000 #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
name: Tagging with Gemini API | |
on: | |
push: | |
branches: | |
- machine-learn | |
paths: | |
- '.github/workflows/run_gemini_v2.yml' | |
jobs: | |
process_songs_30001-32000: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install google-generativeai | |
- name: Run Python Script for lines 30001-32000 | |
env: | |
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} | |
run: | | |
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 30001 32000 | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: song-tags-output-30001-32000 | |
path: tagged_songs.json | |
process_songs_32001-34000: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install google-generativeai | |
- name: Run Python Script for lines 32001-34000 | |
env: | |
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} | |
run: | | |
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 32001 34000 | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: song-tags-output-32001-34000 | |
path: tagged_songs.json | |
process_songs_34001-36000: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install google-generativeai | |
- name: Run Python Script for lines 34001-36000 | |
env: | |
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} | |
run: | | |
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 34001 36000 | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: song-tags-output-34001-36000 | |
path: tagged_songs.json | |
process_songs_36001-38000: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install google-generativeai | |
- name: Run Python Script for lines 36001-38000 | |
env: | |
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} | |
run: | | |
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 36001 38000 | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: song-tags-output-36001-38000 | |
path: tagged_songs.json | |
process_songs_38001-40000: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install google-generativeai | |
- name: Run Python Script for lines 38001-40000 | |
env: | |
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} | |
run: | | |
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 38001 40000 | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: song-tags-output-38001-40000 | |
path: tagged_songs.json |