toward-controlled-generation-of-text-pytorch icon indicating copy to clipboard operation
toward-controlled-generation-of-text-pytorch copied to clipboard

How to create a demo?

Open JunhaoWang opened this issue 7 years ago • 2 comments

Hi! Thanks for your work. I'm trying to train this model on lyrics and create conditional text for demo. However, how do you do something like below? Thanks!

input_lyric = "Sky is high and ocean is blue." output_lyric = some_function(input_lyric, latent_emotion = "sad") print(output_lyric) # expect something like: 'Oh sad sky there is'

JunhaoWang avatar Nov 12 '17 07:11 JunhaoWang

Did you get it working ?

jonzarecki avatar Dec 06 '17 13:12 jonzarecki

Hi @JunhaoWang @yonilx , sorry for the late reply. The code is not complete yet, and I'm still working around with the issue #7 . I think I might implement the flow of models incorrectly. Any advice is welcome !

GBLin5566 avatar Dec 17 '17 10:12 GBLin5566