Skip to content

Commit

Permalink
יצירת תגים עבור שורות 40000-50000
Browse files Browse the repository at this point in the history
  • Loading branch information
NHLOCAL committed Dec 19, 2024
1 parent 1952390 commit f3a2847
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 @@ -8,7 +8,7 @@ on:
- '.github/workflows/run_gemini_v2.yml'

jobs:
process_songs_30001-32000:
process_songs_40001-42000:
runs-on: ubuntu-latest

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

process_songs_32001-34000:
process_songs_42001-44000:
runs-on: ubuntu-latest

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

process_songs_34001-36000:
process_songs_44001-46000:
runs-on: ubuntu-latest

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

process_songs_36001-38000:
process_songs_46001-48000:
runs-on: ubuntu-latest

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

process_songs_38001-40000:
process_songs_48001-50000:
runs-on: ubuntu-latest

steps:
Expand All @@ -141,14 +141,14 @@ jobs:
python -m pip install --upgrade pip
pip install google-generativeai
- name: Run Python Script for lines 38001-40000
- name: Run Python Script for lines 48001-50000
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
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 48001 50000
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: song-tags-output-38001-40000
name: song-tags-output-48001-50000
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(30001, 40000, 2000, 'jobs_output.txt')
generate_jobs(40001, 50000, 2000, 'jobs_output.txt')
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
process_songs_30001-32000:
process_songs_40001-42000:
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 30001-32000
- name: Run Python Script for lines 40001-42000
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
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 40001 42000

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: song-tags-output-30001-32000
name: song-tags-output-40001-42000
path: tagged_songs.json

process_songs_32001-34000:
process_songs_42001-44000:
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 32001-34000
- name: Run Python Script for lines 42001-44000
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
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 42001 44000

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: song-tags-output-32001-34000
name: song-tags-output-42001-44000
path: tagged_songs.json

process_songs_34001-36000:
process_songs_44001-46000:
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 34001-36000
- name: Run Python Script for lines 44001-46000
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
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 44001 46000

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: song-tags-output-34001-36000
name: song-tags-output-44001-46000
path: tagged_songs.json

process_songs_36001-38000:
process_songs_46001-48000:
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 36001-38000
- name: Run Python Script for lines 46001-48000
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
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 46001 48000

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: song-tags-output-36001-38000
name: song-tags-output-46001-48000
path: tagged_songs.json

process_songs_38001-40000:
process_songs_48001-50000:
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 38001-40000
- name: Run Python Script for lines 48001-50000
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
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 48001 50000

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: song-tags-output-38001-40000
name: song-tags-output-48001-50000
path: tagged_songs.json

0 comments on commit f3a2847

Please sign in to comment.