File tree Expand file tree Collapse file tree 1 file changed +3
-14
lines changed
Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -70,30 +70,19 @@ def minimum(c):
7070 unit (c )
7171
7272
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-
8573@task
8674def readme (c ):
87- print (os .walk (os .getcwd ()))
88- add_paths ()
75+ pipeline_path = 'sigllm/pipelines/detector/gpt_detector.json'
8976 test_path = Path ('tests/readme_test' )
9077 if test_path .exists () and test_path .is_dir ():
9178 shutil .rmtree (test_path )
9279
9380 cwd = os .getcwd ()
9481 os .makedirs (test_path , exist_ok = True )
82+ os .makedirs (test_path / 'mlpipelines' , exist_ok = True )
9583 shutil .copy ('README.md' , test_path / 'README.md' )
9684 shutil .copy ('tutorials/data.csv' , test_path / 'data.csv' )
85+ shutil .copy (pipeline_path , test_path / 'mlpipelines' / 'gpt_detector.json' )
9786 os .chdir (test_path )
9887 c .run ('rundoc run --single-session python3 -t python3 README.md' )
9988 os .chdir (cwd )
You can’t perform that action at this time.
0 commit comments