- Install required packages:
pip install -r requirements.txt-
Make sure you have the following files in your directory:
memesChecker.py(main application file)memes.json(data file)
-
Run the Streamlit application:
streamlit run memesChecker.py- The application will open in your default web browser at
http://localhost:8501
- Enter your meme title in the text area
- Use the slider to select posting hour (0-23)
- Click "Predict" to get:
- Virality prediction
- Probability score
- Improvement suggestions if the meme is predicted to be not viral
If you encounter any errors:
- Ensure all required packages are installed
- Check that
memes.jsonis in the same directory asmemesChecker.py - Make sure you have proper permissions to read/write files in the directory
- Check if port 8501 is available (Streamlit's default port)