-
Notifications
You must be signed in to change notification settings - Fork 19
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
It's possible to display text by sentence? #1
Comments
Hey, I made a new notebook that works that way here: https://github.com/lots-of-things/Story2Hallucination/blob/main/Story2Hallucination_preset.ipynb I didn't test it so there might be bugs, but this should do it. Could you test it and let me know if it works? |
OMG, let me test it out, thank you very much, keep you posted. Thanks again |
awesome, glad it's working, I might try using it that way more. I did that for one of my earlier experiments, but then I switched to incrementing through one word at a time just for simplicity. |
I am able to run your regular version fine in Colab, but when I import this "preset" version into Colab and run it I get this error: NameError Traceback (most recent call last) in () NameError: name 'all_text' is not defined |
Line 64 just needed to be removed. I've updated the file in the repo. |
I get this error now: NameError Traceback (most recent call last) in () NameError: name 'words' is not defined |
I was having the same issue, but here is an edited chuck of code to replace the pieces that arent working!filename = TEXT.replace(' ', '_') all_text_list = ["The moon has a face like the clock in the hall,", burnin=20 # words = all_text_list |
Still having some issues, that fixes the error, but prints the whole text on every image. sorry :( |
Update! I figured out a solution/workaround without editing the original text after the test where it says "span= 6" this value can be edited to set the number of words that appear on the screen. You can use a hyphen "-" to take the place of the word so if I have the span set to 8 and the sentences I want are "The cat hopped off the couch" "The cat landed on the floor with grace" I can make them print the line separately by doing "- the cat hopped off the couch-" "The cat landed on the floor with grace". not a perfect fix, but it works for small stories! |
it worked for me yesterday, i tried to change the story again and it does not work anymore. |
there is multiple problems with this code, as if your sentence is longer than width, you also need to add some changes. |
Hi, excellent work, I'm looking to set the span dinamically by the length of a sentence, for example this verse:
The moon has a face like the clock in the hall,
She shines on thieves on the garden wall,
On streets and fields and harbour quays,
And birdies asleep in the forks of the trees,
Could be possible? thank you very much
The text was updated successfully, but these errors were encountered: