-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestion: User input #4
Comments
You can also add on top of the above suggestion to keep prompt going by doing to following indent the last bit of code:
Make it a function such as:
start_prompt('yes')` And call the function to start it off when running the code for the first time. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can promote user input so when the file is run the user gets prompted to input a story prompt instead of having to hardcode it in every time.
In
llama3.py
at line 274 instead ofprompt = "I have a dream"
you can put something like thisprompt = input('Give me a prompt to start writing: ')
which will print the text inside the () and will use the text typed by the user as the prompt variableThe text was updated successfully, but these errors were encountered: