We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Can anyone let me know how to serialize <text2text.text_generator.TextGenerator object at 0x00000165BFF72940>?
I am loading below when flask loads.
from text2text.text_generator import TextGenerator qg = TextGenerator(output_type="question")
Now I need to pass qg object to another server, so need to serialize it. Any relevant pointers would be highly appreciated.
The text was updated successfully, but these errors were encountered:
Sounds like you are trying to wrap a web service around this. In that case, why do you need to pass the entire object to another server?
In any case, one way you can consider is pickle.
Sorry, something went wrong.
No branches or pull requests
Can anyone let me know how to serialize <text2text.text_generator.TextGenerator object at 0x00000165BFF72940>?
I am loading below when flask loads.
from text2text.text_generator import TextGenerator
qg = TextGenerator(output_type="question")
Now I need to pass qg object to another server, so need to serialize it.
Any relevant pointers would be highly appreciated.
The text was updated successfully, but these errors were encountered: