PYTHON MONEY: post #217 — TG.ME

Way to obtain key phrases for a scene: 1. Read the file(s) containing the divided scenes of the script (script_scenes.csv). 2. Take the text of the 3rd or 4th scene for each script. 3. Create a writer object and send a request to the AI assistant, asking it to return a list of key phrases from the text. Request the format to be a Python dictionary or list. 4. Extract the elements of the dictionary or list. 5. Loop through the elements, for each element call the execute method and pass the key phrase into it.

October 23, 2024 1.8K 2