danielrosehill commited on
Commit
70c8d35
·
1 Parent(s): f280d7d
Files changed (4) hide show
  1. .gitattributes +0 -59
  2. .vscode/settings.json +3 -0
  3. README.md +0 -0
  4. update-from-gh.py +71 -0
.gitattributes DELETED
@@ -1,59 +0,0 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bz2 filter=lfs diff=lfs merge=lfs -text
5
- *.ckpt filter=lfs diff=lfs merge=lfs -text
6
- *.ftz filter=lfs diff=lfs merge=lfs -text
7
- *.gz filter=lfs diff=lfs merge=lfs -text
8
- *.h5 filter=lfs diff=lfs merge=lfs -text
9
- *.joblib filter=lfs diff=lfs merge=lfs -text
10
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
- *.lz4 filter=lfs diff=lfs merge=lfs -text
12
- *.mds filter=lfs diff=lfs merge=lfs -text
13
- *.mlmodel filter=lfs diff=lfs merge=lfs -text
14
- *.model filter=lfs diff=lfs merge=lfs -text
15
- *.msgpack filter=lfs diff=lfs merge=lfs -text
16
- *.npy filter=lfs diff=lfs merge=lfs -text
17
- *.npz filter=lfs diff=lfs merge=lfs -text
18
- *.onnx filter=lfs diff=lfs merge=lfs -text
19
- *.ot filter=lfs diff=lfs merge=lfs -text
20
- *.parquet filter=lfs diff=lfs merge=lfs -text
21
- *.pb filter=lfs diff=lfs merge=lfs -text
22
- *.pickle filter=lfs diff=lfs merge=lfs -text
23
- *.pkl filter=lfs diff=lfs merge=lfs -text
24
- *.pt filter=lfs diff=lfs merge=lfs -text
25
- *.pth filter=lfs diff=lfs merge=lfs -text
26
- *.rar filter=lfs diff=lfs merge=lfs -text
27
- *.safetensors filter=lfs diff=lfs merge=lfs -text
28
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
29
- *.tar.* filter=lfs diff=lfs merge=lfs -text
30
- *.tar filter=lfs diff=lfs merge=lfs -text
31
- *.tflite filter=lfs diff=lfs merge=lfs -text
32
- *.tgz filter=lfs diff=lfs merge=lfs -text
33
- *.wasm filter=lfs diff=lfs merge=lfs -text
34
- *.xz filter=lfs diff=lfs merge=lfs -text
35
- *.zip filter=lfs diff=lfs merge=lfs -text
36
- *.zst filter=lfs diff=lfs merge=lfs -text
37
- *tfevents* filter=lfs diff=lfs merge=lfs -text
38
- # Audio files - uncompressed
39
- *.pcm filter=lfs diff=lfs merge=lfs -text
40
- *.sam filter=lfs diff=lfs merge=lfs -text
41
- *.raw filter=lfs diff=lfs merge=lfs -text
42
- # Audio files - compressed
43
- *.aac filter=lfs diff=lfs merge=lfs -text
44
- *.flac filter=lfs diff=lfs merge=lfs -text
45
- *.mp3 filter=lfs diff=lfs merge=lfs -text
46
- *.ogg filter=lfs diff=lfs merge=lfs -text
47
- *.wav filter=lfs diff=lfs merge=lfs -text
48
- # Image files - uncompressed
49
- *.bmp filter=lfs diff=lfs merge=lfs -text
50
- *.gif filter=lfs diff=lfs merge=lfs -text
51
- *.png filter=lfs diff=lfs merge=lfs -text
52
- *.tiff filter=lfs diff=lfs merge=lfs -text
53
- # Image files - compressed
54
- *.jpg filter=lfs diff=lfs merge=lfs -text
55
- *.jpeg filter=lfs diff=lfs merge=lfs -text
56
- *.webp filter=lfs diff=lfs merge=lfs -text
57
- # Video files - compressed
58
- *.mp4 filter=lfs diff=lfs merge=lfs -text
59
- *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.vscode/settings.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "window.title": "${dirty}${activeEditorShort}${separator}${rootName}${separator}${profileName}${separator}${appName}${separator}[Branch: main]"
3
+ }
README.md ADDED
The diff for this file is too large to render. See raw diff
 
update-from-gh.py ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+
3
+ import os
4
+ import requests
5
+ from pathlib import Path
6
+
7
+ # Configuration
8
+ GITHUB_API_URL = "https://api.github.com/repos/danielrosehill/Custom-LLM-Agents/contents/README.md"
9
+ HF_README_PATH = "README.md"
10
+
11
+ def update_hf_readme():
12
+ # Fetch GitHub README using API to get raw content
13
+ headers = {'Accept': 'application/vnd.github.v3.raw'}
14
+ response = requests.get(GITHUB_API_URL, headers=headers)
15
+ github_content = response.text
16
+
17
+ # Read existing HF README to preserve front matter
18
+ hf_path = Path(HF_README_PATH)
19
+ if hf_path.exists():
20
+ with open(hf_path, 'r', encoding='utf-8') as f:
21
+ content = f.read()
22
+ if content.startswith('---'):
23
+ # Find where front matter ends
24
+ front_matter_end = content.find('---', content.find('---') + 3) + 3
25
+ front_matter = content[:front_matter_end]
26
+ else:
27
+ front_matter = ""
28
+ else:
29
+ front_matter = ""
30
+
31
+ # If no front matter exists, create default one
32
+ if not front_matter:
33
+ front_matter = """---
34
+ license: apache-2.0
35
+ annotations_creators:
36
+ - expert-generated
37
+ language:
38
+ - en
39
+ language_creators:
40
+ - expert-generated
41
+ size_categories:
42
+ - n<1K
43
+ source_datasets:
44
+ - original
45
+ task_categories:
46
+ - text-generation
47
+ - conversational
48
+ task_ids:
49
+ - dialogue-modeling
50
+ - text-generation
51
+ paperswithcode_id: null
52
+ pretty_name: LLM Assistant Library
53
+ tags:
54
+ - llm-agents
55
+ - prompts
56
+ - system-prompts
57
+ ---"""
58
+
59
+ # Combine front matter with GitHub content
60
+ new_content = f"{front_matter}\n\n{github_content}"
61
+
62
+ # Write updated README directly (not as LFS pointer)
63
+ with open(hf_path, 'w', encoding='utf-8') as f:
64
+ f.write(new_content)
65
+
66
+ # If README is tracked by LFS, untrack it
67
+ os.system('git rm --cached README.md')
68
+ os.system('git add README.md')
69
+
70
+ if __name__ == "__main__":
71
+ update_hf_readme()