浏览代码

Update gitignore patterns

4z1d1c 1 年之前
父节点
当前提交
1a32383589
共有 1 个文件被更改,包括 15 次插入12 次删除
  1. 15 12
      .gitignore

+ 15 - 12
.gitignore

@@ -1,18 +1,21 @@
-# Model files
-/models/
-*.gguf
+# Exclude everything first
+*
 
-# Logs and cache
-/logs/
-/logs/*.json
-*.log
+# Then include only what we want
+!main.py
+!README.md
+!models/
+!models/llama-2-7b-chat.gguf.dummy
 
-# Gradio and Python
-/.gradio/
+# Exclude the actual model file
+models/llama-2-7b-chat.gguf
+
+# Exclude unwanted directories and files
+.gradio/
 __pycache__/
+config/
+logs/
 *.pyc
 *.pem
-
-# System files
 .DS_Store
-Thumbs.db
+Thumbs.db