Skip to content

Commit

Permalink
הרצת מודל עבור שורות 10000-20000
Browse files Browse the repository at this point in the history
  • Loading branch information
NHLOCAL committed Dec 19, 2024
1 parent 741c465 commit 0679a42
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 41 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/run_gemini_v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- '.github/workflows/run_gemini_v2.yml'

jobs:
process_songs_1-2000:
process_songs_10001-12000:
runs-on: ubuntu-latest

steps:
Expand All @@ -26,19 +26,19 @@ jobs:
python -m pip install --upgrade pip
pip install google-generativeai
- name: Run Python Script for lines 1-2000
- name: Run Python Script for lines 10001-12000
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
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 10001 12000
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: song-tags-output-1-2000
name: song-tags-output-10001-12000
path: tagged_songs.json

process_songs_2001-4000:
process_songs_12001-14000:
runs-on: ubuntu-latest

steps:
Expand All @@ -55,19 +55,19 @@ jobs:
python -m pip install --upgrade pip
pip install google-generativeai
- name: Run Python Script for lines 2001-4000
- name: Run Python Script for lines 12001-14000
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
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 12001 14000
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: song-tags-output-2001-4000
name: song-tags-output-12001-14000
path: tagged_songs.json

process_songs_4001-6000:
process_songs_14001-16000:
runs-on: ubuntu-latest

steps:
Expand All @@ -84,19 +84,19 @@ jobs:
python -m pip install --upgrade pip
pip install google-generativeai
- name: Run Python Script for lines 4001-6000
- name: Run Python Script for lines 14001-16000
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
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 14001 16000
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: song-tags-output-4001-6000
name: song-tags-output-14001-16000
path: tagged_songs.json

process_songs_6001-8000:
process_songs_16001-18000:
runs-on: ubuntu-latest

steps:
Expand All @@ -113,19 +113,19 @@ jobs:
python -m pip install --upgrade pip
pip install google-generativeai
- name: Run Python Script for lines 6001-8000
- name: Run Python Script for lines 16001-18000
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
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 16001 18000
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: song-tags-output-6001-8000
name: song-tags-output-16001-18000
path: tagged_songs.json

process_songs_8001-10000:
process_songs_18001-20000:
runs-on: ubuntu-latest

steps:
Expand All @@ -142,14 +142,14 @@ jobs:
python -m pip install --upgrade pip
pip install google-generativeai
- name: Run Python Script for lines 8001-10000
- name: Run Python Script for lines 18001-20000
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
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 18001 20000
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: song-tags-output-8001-10000
name: song-tags-output-18001-20000
path: tagged_songs.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ def generate_jobs(start, end, step, output_file):
f.write("\n".join(jobs))

# Generate jobs for ranges 1000 to 5000 with a step of 1000
generate_jobs(1, 10000, 2000, 'jobs_output.txt')
generate_jobs(10001, 20000, 2000, 'jobs_output.txt')
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
process_songs_1-2000:
process_songs_10001-12000:
runs-on: ubuntu-latest

steps:
Expand All @@ -15,19 +15,19 @@
python -m pip install --upgrade pip
pip install google-generativeai

- name: Run Python Script for lines 1-2000
- name: Run Python Script for lines 10001-12000
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
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 10001 12000

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: song-tags-output-1-2000
name: song-tags-output-10001-12000
path: tagged_songs.json

process_songs_2001-4000:
process_songs_12001-14000:
runs-on: ubuntu-latest

steps:
Expand All @@ -44,19 +44,19 @@
python -m pip install --upgrade pip
pip install google-generativeai

- name: Run Python Script for lines 2001-4000
- name: Run Python Script for lines 12001-14000
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
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 12001 14000

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: song-tags-output-2001-4000
name: song-tags-output-12001-14000
path: tagged_songs.json

process_songs_4001-6000:
process_songs_14001-16000:
runs-on: ubuntu-latest

steps:
Expand All @@ -73,19 +73,19 @@
python -m pip install --upgrade pip
pip install google-generativeai

- name: Run Python Script for lines 4001-6000
- name: Run Python Script for lines 14001-16000
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
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 14001 16000

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: song-tags-output-4001-6000
name: song-tags-output-14001-16000
path: tagged_songs.json

process_songs_6001-8000:
process_songs_16001-18000:
runs-on: ubuntu-latest

steps:
Expand All @@ -102,19 +102,19 @@
python -m pip install --upgrade pip
pip install google-generativeai

- name: Run Python Script for lines 6001-8000
- name: Run Python Script for lines 16001-18000
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
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 16001 18000

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: song-tags-output-6001-8000
name: song-tags-output-16001-18000
path: tagged_songs.json

process_songs_8001-10000:
process_songs_18001-20000:
runs-on: ubuntu-latest

steps:
Expand All @@ -131,14 +131,14 @@
python -m pip install --upgrade pip
pip install google-generativeai

- name: Run Python Script for lines 8001-10000
- name: Run Python Script for lines 18001-20000
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
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 18001 20000

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: song-tags-output-8001-10000
name: song-tags-output-18001-20000
path: tagged_songs.json

0 comments on commit 0679a42

Please sign in to comment.