mirror of
https://github.com/Paillat-dev/FABLE.git
synced 2026-01-02 01:06:20 +00:00
feat(video.py): add support for script_prompt.txt file to customize script prompts
fix(script.py): add prompt parameter to generate_script function feat(main.py): add loop to run main function indefinitely and add option to quit with ctrl+c
This commit is contained in:
@@ -6,8 +6,7 @@ with open('prompts/script.txt') as f:
|
||||
global_prompt = f.read()
|
||||
f.close()
|
||||
|
||||
async def generate_script(title, description):
|
||||
prompt = global_prompt
|
||||
async def generate_script(title, description, prompt=global_prompt):
|
||||
prompt = prompt.replace("[title]", title)
|
||||
prompt = prompt.replace("[description]", description)
|
||||
'''response = await openai.ChatCompletion.acreate(
|
||||
|
||||
Reference in New Issue
Block a user