Skip to content

Commit

Permalink
יצירת תגים עבור שורות 60000-סוף
Browse files Browse the repository at this point in the history
  • Loading branch information
NHLOCAL committed Dec 19, 2024
1 parent cb22f1c commit e1050e6
Show file tree
Hide file tree
Showing 4 changed files with 158 additions and 42 deletions.
98 changes: 78 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_50001-52000:
process_songs_60001-62000:
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 50001-52000
- name: Run Python Script for lines 60001-62000
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
run: |
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 50001 52000
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 60001 62000
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: song-tags-output-50001-52000
name: song-tags-output-60001-62000
path: tagged_songs.json

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

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

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

process_songs_58001-60000:
process_songs_68001-70000:
runs-on: ubuntu-latest

steps:
Expand All @@ -141,14 +141,72 @@ jobs:
python -m pip install --upgrade pip
pip install google-generativeai
- name: Run Python Script for lines 58001-60000
- name: Run Python Script for lines 68001-70000
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
run: |
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 58001 60000
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 68001 70000
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: song-tags-output-58001-60000
name: song-tags-output-68001-70000
path: tagged_songs.json

process_songs_70001-72000:
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 70001-72000
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
run: |
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 70001 72000
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: song-tags-output-70001-72000
path: tagged_songs.json

process_songs_72001-73370:
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 72001-73370
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
run: |
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 72001 73370
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: song-tags-output-72001-73370
path: tagged_songs.json
2 changes: 1 addition & 1 deletion machine-learn/model_metrics.csv
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ custom_ner_model26-2git,0.878120,0.961415,0.808108
custom_ner_model26-1git,0.876471,0.961290,0.805405
custom_ner_model26git,0.874636,0.949367,0.810811
custom_ner_model29+23-1git,0.870343,0.970100,0.789189
custom_ner_model30git,0.757835,0.801205,0.718919
custom_ner_model30git,0.814917,0.833333,0.797297
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(50001, 60000, 2000, 'jobs_output.txt')
generate_jobs(60001, 73370, 2000, 'jobs_output.txt')
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
process_songs_50001-52000:
process_songs_60001-62000:
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 50001-52000
- name: Run Python Script for lines 60001-62000
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
run: |
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 50001 52000
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 60001 62000

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

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

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

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

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

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

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

process_songs_58001-60000:
process_songs_68001-70000:
runs-on: ubuntu-latest

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

- name: Run Python Script for lines 58001-60000
- name: Run Python Script for lines 68001-70000
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
run: |
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 58001 60000
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 68001 70000

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

process_songs_70001-72000:
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 70001-72000
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
run: |
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 70001 72000

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: song-tags-output-70001-72000
path: tagged_songs.json

process_songs_72001-74000:
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 72001-74000
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
run: |
python machine-learn/scrape_data/level0/Gemini-synthetic-v2/1-gemini_tagging-api.py 72001 74000

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: song-tags-output-72001-74000
path: tagged_songs.json

0 comments on commit e1050e6

Please sign in to comment.