יצירת תגים עבור שורות 20000-30000 #15
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_20001-22000: | |
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 20001-22000 | |
env: | |
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} | |
run: | | |
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 20001 22000 | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: song-tags-output-20001-22000 | |
path: tagged_songs.json | |
process_songs_22001-24000: | |
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 22001-24000 | |
env: | |
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} | |
run: | | |
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 22001 24000 | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: song-tags-output-22001-24000 | |
path: tagged_songs.json | |
process_songs_24001-26000: | |
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 24001-26000 | |
env: | |
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} | |
run: | | |
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 24001 26000 | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: song-tags-output-24001-26000 | |
path: tagged_songs.json | |
process_songs_26001-28000: | |
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 26001-28000 | |
env: | |
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} | |
run: | | |
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 26001 28000 | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: song-tags-output-26001-28000 | |
path: tagged_songs.json | |
process_songs_28001-30000: | |
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 28001-30000 | |
env: | |
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} | |
run: | | |
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 28001 30000 | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: song-tags-output-28001-30000 | |
path: tagged_songs.json |