jonverrier / BraidEng

Engine code for an OpenAI assistant that likes to talk about AI, written using Typescript, Node.js, & the Azure stack. GPT-3 backed with a store of AI Canon documents.
GNU Affero General Public License v3.0
0 stars 1 forks source link

Python - Fix pathnames in scripts - so they run on Windows & Unix #40

Closed jonverrier closed 1 week ago

jonverrier commented 3 weeks ago

Current code contains a mix of pathname types.

E.g.

  1. In 'youtube_pipeline.py', it uses unix style TRANSCRIPT_DESTINATION_DIR = "data/youtube".
  2. In youtube\enrich_transcript_summaries.py it uses os.path.join, which adds a Widnows style path (when run on windows). This is invalid & creates error at runtime.

The scripts need to be changed to use Python platform independent paths.

The same issue exists for HTML & .MD processing.

jonverrier commented 1 week ago

CLosed in latest build