Creative Writer AI is a Flask web app that generates six stylistic rewrites of Italian text. It replaces the old Streamlit chat and does not rely on v0 or Next.js.
- 6 variants: sociological, evocative, psychodynamic, lyrical, minimal, dialogic
- Upload TXT/MD/PDF/DOCX or paste text directly
- Import files into the editor (server extraction for PDF/DOCX)
- Optional Italian linguistic analysis (spaCy)
- Open resources lookup (Wiktionary + Wikisource)
- Quick paraphrase with tone control and synonym intensity
- Structured output plus validation checks
- Python 3.11+
Install dependencies:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txtOptional spaCy model:
python -m spacy download it_core_news_smvenv/bin/python app.pyOpen:
http://127.0.0.1:5000
GET /-> Web UIPOST /api/refine-> Form-data:text,note,include_analysis,filePOST /api/analyze-> JSON:{ "text": "..." }POST /api/paraphrase-> JSON:{ "text": "...", "tone": "neutral|concise|evocative|lyrical", "intensity": 0-1 }POST /api/extract-> Form-data:fileGET /api/resources?q=term
app.py: Flask web app and API routescreative_writer.py: transformation engineopen_resources.py: open resources lookupitalian_tools.py: Italian linguistic analysistemplates/index.html: main UIstatic/styles.css,static/app.js: UI assetstest.py: output validator
MIT (see LICENSE)
- Create a new Web Service from GitHub.
- Select this repository.
- Use the default buildpack detection.
- Start command is already provided via
Procfile. - Deploy and open the public URL.