Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
led-mirage committed Jun 8, 2024
1 parent 0a5dccc commit 095748b
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 9 deletions.
19 changes: 13 additions & 6 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Windowsの場合は、Windowsの検索窓で「環境変数を編集」で検索

以下のリンクから ZundaGPT2.ZIP をダウンロードして、作成したフォルダに展開するのだ。

https://github.com/led-mirage/ZundaGPT2/releases/tag/v1.0.0
https://github.com/led-mirage/ZundaGPT2/releases/tag/v1.0.1

#### 3. 実行

Expand Down Expand Up @@ -169,9 +169,9 @@ OpenAIやGoogle GeminiのAPIキーはあなただけのものなので、人に
これが嫌な人は(ボクも嫌だけど)、Python本体をインストールしてPythonから普通に実行して欲しいのだ。実行ファイルのほうが手軽だし、そのほうがPythonに詳しくない人にとっては簡単なんだけど、誤認問題がついて回ることは覚えておいて欲しいのだ。

VirusTotalでのチェック結果は以下の通りなのだ。
74個中3個のアンチウィルスエンジンで検出 :2024/06/02 v1.0.0)。
72個中3個のアンチウィルスエンジンで検出 :2024/06/08 v1.0.1)。

<img src="doc/virustotal_1.0.0.png" width="600">
<img src="doc/virustotal_1.0.1.png" width="600">

### ⚡ 免責事項

Expand All @@ -184,12 +184,12 @@ VirusTotalでのチェック結果は以下の通りなのだ。
ホームページ: https://github.com/r0x0r/pywebview
ライセンス:BSD-3-Clause license

### 🔖 openai 1.23.2
### 🔖 openai 1.33.0

ホームページ: https://github.com/openai/openai-python
ライセンス:Apache License 2.0

### 🔖 google-generativeai 0.5.4
### 🔖 google-generativeai 0.6.0

ホームページ: https://github.com/google-gemini/generative-ai-python
ライセンス:Apache License 2.0
Expand All @@ -199,7 +199,7 @@ VirusTotalでのチェック結果は以下の通りなのだ。
ホームページ: https://github.com/pndurette/gTTS
ライセンス:MIT License

### 🔖 requests 2.31.0
### 🔖 requests 2.32.3

ホームページ: https://requests.readthedocs.io/en/latest/
ライセンス:Apache License 2.0
Expand Down Expand Up @@ -342,3 +342,10 @@ VirusTotalでのチェック結果は以下の通りなのだ。
- SAPI5に対応
- requestsのバージョンを2.32.2に更新
- バージョンを1.x.xに改定

### 1.0.1 (2024/6/8)

- openaiのバージョンを1.33.0に更新
- google-generativeaiのバージョンを0.6.0に更新
- requestsのバージョンを2.32.3に更新
- 再生環境による文末の音声途切れ問題を軽減するため、再生終了後に0.2秒間の待機時間を追加
2 changes: 1 addition & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from chat_log import ChatLog

APP_NAME = "ZundaGPT2"
APP_VERSION = "1.0.0"
APP_VERSION = "1.0.1"
COPYRIGHT = "Copyright 2024 led-mirage"

# アプリケーションクラス
Expand Down
2 changes: 2 additions & 0 deletions app/sound/sound.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# ライセンスの詳細については、このプロジェクトのLICENSEファイルを参照してください。

import io
import time
import wave

import pyaudio
Expand All @@ -29,6 +30,7 @@ def play_sound(wave_data: bytes):
while data != b'':
stream.write(data)
data = wave_file.readframes(1024)
time.sleep(0.2)
finally:
stream.stop_stream()
stream.close()
Expand Down
Binary file added doc/virustotal_1.0.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
pywebview==4.4.1
requests==2.32.3
pyaudio==0.2.14
openai==1.23.2
openai==1.33.0
pythonnet==3.0.3
google-generativeai==0.5.4
google-generativeai==0.6.0
gtts==2.5.1
langdetect==1.0.9
pydub==0.25.1
Expand Down

0 comments on commit 095748b

Please sign in to comment.