Skip to content
Open

Test2 #162

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
51d289b
Change to gemma3
Uminchu618 Apr 19, 2025
d9a1437
change title
Uminchu618 Apr 19, 2025
a329193
Merge branch 'master' of https://github.com/Uminchu618/lecture-ai-eng…
Uminchu618 May 1, 2025
30c60c1
質問の記載
Uminchu618 May 1, 2025
3a4c450
宿題Notebook
Uminchu618 May 1, 2025
04fb963
Colab を使用して作成されました
Uminchu618 May 1, 2025
fb9ee8b
Colab を使用して作成されました
Uminchu618 May 1, 2025
a550dc9
Document Upload
Uminchu618 May 2, 2025
f47cc72
Colab を使用して作成されました
Uminchu618 May 2, 2025
60876ba
Document追加
Uminchu618 May 2, 2025
2b2ac0a
Merge branch 'master' of https://github.com/Uminchu618/lecture-ai-eng…
Uminchu618 May 2, 2025
b0461ac
Colab を使用して作成されました
Uminchu618 May 2, 2025
b4ed8f5
Colab を使用して作成されました
Uminchu618 May 2, 2025
bf6638c
Colab を使用して作成されました
Uminchu618 May 2, 2025
3fdfb7b
Colab を使用して作成されました
Uminchu618 May 2, 2025
9423e83
Refactor code structure for improved readability and maintainability
Uminchu618 May 4, 2025
52991d2
Merge branch 'master' of https://github.com/Uminchu618/lecture-ai-eng…
Uminchu618 May 4, 2025
852442f
フォルダ移動
Uminchu618 May 6, 2025
f7cefa3
widget削除
Uminchu618 May 2, 2025
d5653d2
Merge branch 'matsuolab:master' into master
Uminchu618 May 20, 2025
cec835e
Implement feature X to enhance user experience and fix bug Y in module Z
Uminchu618 May 20, 2025
514165c
Merge pull request #1 from Uminchu618/develop
Uminchu618 May 20, 2025
a06548b
前回結果との比較
Uminchu618 May 22, 2025
1bf28a5
Uodate
Uminchu618 May 22, 2025
c4c1a7e
文法エラー
Uminchu618 May 22, 2025
5c4c143
初期ファイルコミット
Uminchu618 May 22, 2025
e317828
パス訂正
Uminchu618 May 22, 2025
0083cb8
Pushエラー対策
Uminchu618 May 22, 2025
7724555
mainにコミットじに修正
Uminchu618 May 22, 2025
b3ef636
保存しわすれ
Uminchu618 May 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 42 additions & 30 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,50 @@ on:
# push:
# branches: [ main, master ]
pull_request:
branches: [ main, master ]
branches: [main, master]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest great_expectations pandas scikit-learn flake8 black mypy pytest-cov
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi

- name: Lint with flake8
run: |
flake8 day5/演習3 --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 day5/演習3 --count --exit-zero --max-complexity=10 --max-line-length=88 --statistics

- name: Format check with black
run: |
black --check day5/演習3

- name: Run data tests
run: |
pytest day5/演習3/tests/test_data.py -v

- name: Run model tests
run: |
pytest day5/演習3/tests/test_model.py -v
- uses: actions/checkout@v3
with:
fetch-depth: 0 # full history
persist-credentials: true # push できるように
ref: ${{ github.ref }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest great_expectations pandas scikit-learn flake8 black mypy pytest-cov
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi

- name: Lint with flake8
run: |
flake8 day5/演習3 --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 day5/演習3 --count --exit-zero --max-complexity=10 --max-line-length=88 --statistics

- name: Format check with black
run: |
black --check day5/演習3

- name: Run data tests
run: |
pytest day5/演習3/tests/test_data.py -v

- name: Run model tests
run: |
pytest day5/演習3/tests/test_model.py -v

- name: Commit and push updated accuracy baseline
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add day5/演習3/models/previous_accuracy.json
git diff --cached --quiet || \
(git commit -m "ci: update accuracy baseline" && git push)
4 changes: 2 additions & 2 deletions day1/02_streamlit_app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def load_model():
pipe = llm.load_model()

# --- Streamlit アプリケーション ---
st.title("🤖 Gemma 2 Chatbot with Feedback")
st.title("🤖 Gemma 3 Chatbot with Feedback")
st.write("Gemmaモデルを使用したチャットボットです。回答に対してフィードバックを行えます。")
st.markdown("---")

Expand Down Expand Up @@ -78,4 +78,4 @@ def load_model():

# --- フッターなど(任意) ---
st.sidebar.markdown("---")
st.sidebar.info("開発者: [Your Name]")
st.sidebar.info("開発者: [Your Name]")
2 changes: 1 addition & 1 deletion day1/02_streamlit_app/config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# config.py
DB_FILE = "chat_feedback.db"
MODEL_NAME = "google/gemma-2-2b-jpn-it"
MODEL_NAME = "google/gemma-3-1b-it"
847 changes: 847 additions & 0 deletions day3_homework/HOMEWORK.md

Large diffs are not rendered by default.

1,442 changes: 1,442 additions & 0 deletions day3_homework/documents.csv

Large diffs are not rendered by default.

Loading