Skip to content

Commit

Permalink
יצירת תגים עבור שורות 50000-60000
Browse files Browse the repository at this point in the history
  • Loading branch information
NHLOCAL committed Dec 19, 2024
1 parent 09cd091 commit fefce2c
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_40001-42000:
process_songs_50001-52000:
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 40001-42000
- name: Run Python Script for lines 50001-52000
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
run: |
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 40001 42000
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 50001 52000
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: song-tags-output-40001-42000
name: song-tags-output-50001-52000
path: tagged_songs.json

process_songs_42001-44000:
process_songs_52001-54000:
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 42001-44000
- name: Run Python Script for lines 52001-54000
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
run: |
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 42001 44000
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 52001 54000
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: song-tags-output-42001-44000
name: song-tags-output-52001-54000
path: tagged_songs.json

process_songs_44001-46000:
process_songs_54001-56000:
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 44001-46000
- name: Run Python Script for lines 54001-56000
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
run: |
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 44001 46000
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 54001 56000
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: song-tags-output-44001-46000
name: song-tags-output-54001-56000
path: tagged_songs.json

process_songs_46001-48000:
process_songs_56001-58000:
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 46001-48000
- name: Run Python Script for lines 56001-58000
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
run: |
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 46001 48000
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 56001 58000
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: song-tags-output-46001-48000
name: song-tags-output-56001-58000
path: tagged_songs.json

process_songs_48001-50000:
process_songs_58001-60000:
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 48001-50000
- name: Run Python Script for lines 58001-60000
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
run: |
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 48001 50000
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 58001 60000
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: song-tags-output-48001-50000
name: song-tags-output-58001-60000
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(40001, 50000, 2000, 'jobs_output.txt')
generate_jobs(50001, 60000, 2000, 'jobs_output.txt')
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
process_songs_40001-42000:
process_songs_50001-52000:
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 40001-42000
- name: Run Python Script for lines 50001-52000
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
run: |
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 40001 42000
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 50001 52000

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

process_songs_42001-44000:
process_songs_52001-54000:
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 42001-44000
- name: Run Python Script for lines 52001-54000
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
run: |
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 42001 44000
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 52001 54000

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

process_songs_44001-46000:
process_songs_54001-56000:
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 44001-46000
- name: Run Python Script for lines 54001-56000
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
run: |
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 44001 46000
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 54001 56000

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

process_songs_46001-48000:
process_songs_56001-58000:
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 46001-48000
- name: Run Python Script for lines 56001-58000
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
run: |
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 46001 48000
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 56001 58000

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

process_songs_48001-50000:
process_songs_58001-60000:
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 48001-50000
- name: Run Python Script for lines 58001-60000
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
run: |
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 48001 50000
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 58001 60000

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

0 comments on commit fefce2c

Please sign in to comment.