metadata
title: Next Word Prediction
emoji: 🔮
colorFrom: blue
colorTo: purple
sdk: docker
app_file: Dockerfile
pinned: false
Next Word Prediction Demo
This is a demo app for next word prediction using a trained model with a .pkl tokenizer file.
How to Use
- Enter some text in the input box
- Select how many words you want to predict (1-10)
- Adjust the temperature (controls creativity vs predictability)
- Click "Predict Next Words" to see the prediction
Model Details
- Built with TensorFlow/Keras
- Uses .pkl format tokenizer
- Trained on [mention your dataset here]
Files
model.h5
: Trained Keras modeltokenizer.pkl
: Tokenizer for text processing (.pkl format)app.py
: Streamlit applicationDockerfile
: Container configuration