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:
11
main.py
11
main.py
@@ -65,7 +65,12 @@ async def main():
|
||||
printm("Done!")
|
||||
printm("Here is the video:")
|
||||
printm(video)
|
||||
input("Press enter to continue...")
|
||||
if __name__ == "__main__":
|
||||
loop = asyncio.get_event_loop()
|
||||
loop.run_until_complete(main())
|
||||
loop.close()
|
||||
while True:
|
||||
asyncio.run(main())
|
||||
try:
|
||||
input("Press enter to continue or type ctrl+c to quit : ")
|
||||
clear_screen()
|
||||
except KeyboardInterrupt:
|
||||
break
|
||||
Reference in New Issue
Block a user