File tree 1 file changed +3
-14
lines changed
1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -70,30 +70,19 @@ def minimum(c):
70
70
unit (c )
71
71
72
72
73
- def add_paths ():
74
- base_path = Path (os .path .join (os .getcwd (), 'sigllm' ))
75
- primitives_path = os .path .join (base_path , 'primitives' , 'jsons' )
76
- pipeline_paths = [
77
- os .path .join (base_path , 'pipelines' , 'detector' ),
78
- os .path .join (base_path , 'pipelines' , 'prompter' )
79
- ]
80
- add_primitives_path (primitives_path )
81
- for pipeline_path in pipeline_paths :
82
- add_pipelines_path (pipeline_path )
83
-
84
-
85
73
@task
86
74
def readme (c ):
87
- print (os .walk (os .getcwd ()))
88
- add_paths ()
75
+ pipeline_path = 'sigllm/pipelines/detector/gpt_detector.json'
89
76
test_path = Path ('tests/readme_test' )
90
77
if test_path .exists () and test_path .is_dir ():
91
78
shutil .rmtree (test_path )
92
79
93
80
cwd = os .getcwd ()
94
81
os .makedirs (test_path , exist_ok = True )
82
+ os .makedirs (test_path / 'mlpipelines' , exist_ok = True )
95
83
shutil .copy ('README.md' , test_path / 'README.md' )
96
84
shutil .copy ('tutorials/data.csv' , test_path / 'data.csv' )
85
+ shutil .copy (pipeline_path , test_path / 'mlpipelines' / 'gpt_detector.json' )
97
86
os .chdir (test_path )
98
87
c .run ('rundoc run --single-session python3 -t python3 README.md' )
99
88
os .chdir (cwd )
You can’t perform that action at this time.
0 commit comments