A web application for generating NSFW stories using AI language models. This project is designed to run in GitHub Codespaces and uses the Hugging Face Transformers library with the UnfilteredAI/NSFW-3B model for story generation.
- Web-based UI for generating NSFW stories
- Support for different genres (Romance, Fantasy, Sci-Fi, Contemporary, Historical)
- Adjustable story length and creativity settings
- Flask backend API for story generation
- Integration with Hugging Face Transformers for using the UnfilteredAI/NSFW-3B model
- Designed to work with both local and cloud-hosted language models
- Click the "Code" button on the GitHub repository page
- Select the "Codespaces" tab
- Click "Create codespace on main"
- Wait for the codespace to initialize
The application will automatically start and be available on port 5000. GitHub Codespaces will provide a link to open the application in your browser.
If you want to run the application locally instead of in Codespaces:
- Clone the repository
- Install dependencies:
pip install -r requirements.txt - Run the application:
python app.py - Open your browser to
http://localhost:5000
By default, the application runs in "mock mode" and generates predefined stories to save resources. To use it with the actual UnfilteredAI/NSFW-3B model:
- Update the
app.pyfile to initialize the model withuse_mock=False:
model = ModelIntegration(model_name="UnfilteredAI/NSFW-3B", use_mock=False)- The model will be automatically downloaded from Hugging Face the first time you run the application
- Note that this requires significant RAM and disk space as the model is approximately 3GB in size
You can also use other Hugging Face models by changing the model_name parameter:
model = ModelIntegration(model_name="YourPreferredModel/model-name", use_mock=False)app.py- Flask application and API endpointsindex.html- Web UI for the applicationmodel_integration.py- Integration with language modelsrequirements.txt- Python dependencies.devcontainer/- Configuration for GitHub Codespaces
This application is configured to use the UnfilteredAI/NSFW-3B model from Hugging Face, which is specifically designed for NSFW content generation. Other models you might consider:
- UnfilteredAI/NSFW-3B - The default model, good balance of quality and resource usage
- NeverSleep/Noromaid-3B-v0.1.1 - Another NSFW-focused model
- PygmalionAI/pygmalion-6b - Good for character-based storytelling
- Undi95/ReMM-NSFW - Specialized for NSFW content
All these models can be found on Hugging Face and can be used by changing the model_name parameter in the application.
This project is for educational purposes only. Users are responsible for ensuring compliance with all applicable laws and regulations regarding AI-generated content.