diff --git a/.gitignore b/.gitignore index 441ceb5..47b5f9f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,8 @@ -/__pycache__ /Novel_Src /vectorstore /.conda +/build +/dist +/.vscode +__pycache__ config.json \ No newline at end of file diff --git a/README.md b/README.md index dbea510..e758021 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ ## **2. 安装依赖** **手动安装以下依赖**: ```bash -pip install openai langchain chromadb langchain_openai langchain_chroma langgraph typing_extensions +pip install openai langchain chromadb langchain_openai langchain_chroma langgraph typing_extensions langchain-community ``` --- diff --git a/icon.ico b/icon.ico new file mode 100644 index 0000000..d7491c7 Binary files /dev/null and b/icon.ico differ diff --git a/main.spec b/main.spec new file mode 100644 index 0000000..bfd34cb --- /dev/null +++ b/main.spec @@ -0,0 +1,45 @@ +# -*- mode: python ; coding: utf-8 -*- + + +a = Analysis( + ['main.py'], + pathex=[], + binaries=[], + datas=[], + hiddenimports=['typing_extensions', 'langchain-openai', 'langgraph', 'openai', 'chromadb','langchain-community','pydantic','pydantic.deprecated.decorator'], + hookspath=[], + hooksconfig={}, + runtime_hooks=[], + excludes=[], + noarchive=False, + optimize=0, +) +pyz = PYZ(a.pure) + +exe = EXE( + pyz, + a.scripts, + [], + exclude_binaries=True, + name='AI_NovelGenerator_V1.0', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + console=True, + disable_windowed_traceback=False, + argv_emulation=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None, + icon=['icon.ico'] +) +coll = COLLECT( + exe, + a.binaries, + a.datas, + strip=False, + upx=True, + upx_exclude=[], + name='AI_NovelGenerator_V1.0', +) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..693dcb1 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +typing_extensions +langchain-openai +langgraph +openai +chromadb +langchain-community