Polarium/NextTokenPrediction
1
1## AI Text Assistant Project2 3I need to make a small webapp which uses two models from huggingface.co.4One model will be used for Text Generation and the other for Text Summarization.5I need you to make a frontend which displays the results for what is generated by the models when a user enters a phrase or an article.6 7Text Generation Model: Qwen/Qwen2.5-0.5B-Instruct8Text Summarization Model: facebook/bart-large-cnn9 10The app flow should look like this:11 12- Application is open in the web browser (huggingface code space)13- Choose between "Text Generation" or "Text Summarization" mode (should have single text field with toggle bar which allows to set a mode)14- User enters their text in the input field15- Adjust max tokens and sampling options as needed16- Click "Process" to generate results17- Final result of the AI is displayed for the user18- Mouse hovering over each word the AI generates shows a box that lists the top 5 words the AI could've used instead of the final greedy result.19 20Have it ready to be deployed to a huggingface' spaces repo.21 