תיקון שגיאה #9
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: | |
- 'machine-learn/scrape_data/level0/Gemini-synthetic-v2/**' | |
- '.github/workflows/run_gemini_v2.yml' | |
jobs: | |
process_songs_1-2000: | |
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 1-2000 | |
env: | |
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} | |
run: | | |
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 1 2000 | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: song-tags-output-1-2000 | |
path: tagged_songs.json | |
process_songs_2001-4000: | |
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 2001-4000 | |
env: | |
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} | |
run: | | |
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 2001 4000 | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: song-tags-output-2001-4000 | |
path: tagged_songs.json | |
process_songs_4001-6000: | |
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 4001-6000 | |
env: | |
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} | |
run: | | |
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 4001 6000 | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: song-tags-output-4001-6000 | |
path: tagged_songs.json | |
process_songs_6001-8000: | |
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 6001-8000 | |
env: | |
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} | |
run: | | |
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 6001 8000 | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: song-tags-output-6001-8000 | |
path: tagged_songs.json | |
process_songs_8001-10000: | |
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 8001-10000 | |
env: | |
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} | |
run: | | |
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 8001 10000 | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: song-tags-output-8001-10000 | |
path: tagged_songs.json |