Update chatcode/package.py
Browse files- chatcode/package.py +2 -2
chatcode/package.py
CHANGED
|
@@ -8,9 +8,9 @@ ROOT = Path(__file__).resolve().parent.parent
|
|
| 8 |
if __name__ == "__main__":
|
| 9 |
files = [ROOT / name for name in ["app.py", "chat.py", "LICENSE", "LICENSE-BASE-MODEL.txt"]]
|
| 10 |
files += [p for p in (ROOT / "chatcode").iterdir()
|
| 11 |
-
if p.is_file() and p.suffix in {".py", ".json", ".md", ".txt"}]
|
| 12 |
(ROOT / "dist").mkdir(exist_ok=True)
|
| 13 |
-
destination = ROOT / "dist/pocketvision-chat-code-source.zip"
|
| 14 |
with zipfile.ZipFile(destination, "w", compression=zipfile.ZIP_DEFLATED) as bundle:
|
| 15 |
for path in sorted(files):
|
| 16 |
bundle.write(path, path.relative_to(ROOT).as_posix())
|
|
|
|
| 8 |
if __name__ == "__main__":
|
| 9 |
files = [ROOT / name for name in ["app.py", "chat.py", "LICENSE", "LICENSE-BASE-MODEL.txt"]]
|
| 10 |
files += [p for p in (ROOT / "chatcode").iterdir()
|
| 11 |
+
if p.is_file() and p.suffix in {".py", ".json", ".md", ".txt", ".ipynb"}]
|
| 12 |
(ROOT / "dist").mkdir(exist_ok=True)
|
| 13 |
+
destination = ROOT / "dist/pocketvision-chat-code-writing-source.zip"
|
| 14 |
with zipfile.ZipFile(destination, "w", compression=zipfile.ZIP_DEFLATED) as bundle:
|
| 15 |
for path in sorted(files):
|
| 16 |
bundle.write(path, path.relative_to(ROOT).as_posix())
|