selennlamson / aitextgeneratorfront Goto Github PK
View Code? Open in Web Editor NEWFront-end VueJS application for AI powered text generation
License: MIT License
Front-end VueJS application for AI powered text generation
License: MIT License
Hello again.
Thanks for the replies and updated code. Trained a a gpt2 small model using the 'eval' folder .json files. Next 'run_backend.py loads supplied NER model and small gpt2 model:
gpt2_model = GPT2LMHeadModel.from_pretrained('models/gpt2-small-eval-fp16')
gpt2_tokenizer = GPT2Tokenizer.from_pretrained('models/gpt2-small-eval-fp16')
gpt2_flexible_model = FlexibleGPT2(gpt2_model, gpt2_tokenizer, DEFAULT_DECODING_STRATEGY)
self.gen_model = TextGeneration(gpt2_flexible_model, use_context=True)
Next have 'AITextGeneratorFront' running http://localhost:8080/
Main page opens. Click to 'Editor' page, write or copy some text.
Highlight the next and the NER model selects, for example, the name 'John' but when I click generate the selected text is deleted. No options appear in the right column
Error message in the 'run_backend.py' terminal window is:
TypeError: init() got an unexpected keyword argument 'context'
Any idea on how to fix this? Would like to test custom .json files but it's not working with the defaults.
Thanks
have 'AITextGeneratorFront' running http://localhost:8080/Main page opens
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.