How vinogradtanya/artificial_intelligence_prototype works
AI Content Studio is a Flask prototype for authenticated text, image, and audio generation. Users register or sign in, submit a moderated project, receive generated content, and have successful results and token transactions recorded for later library, history, and export views. Separate branches cover account and tariff management, administration, and the offline/LLM assistant. The excerpts show the main route-to-model and generation calls; optional external engines are documented, while unsampled details are not expanded.
Main entry points: __init__.py Flask app · models.py Business data access · projects.py Project and library · templates Web templates
Components 20
Web workflows
- Flask app
app/__init__.py - Authentication
app/auth.py - Account and billing
app/main.py - History and export
app/reports.py - Web templates
app/templates
Content generation
- Project and library
app/projects.py - Prompt moderation
app/moderation.py - Content engines
app/generator.py - Generated media
storage/media
Data and access
- Session and roles
app/security.py - Business data access
app/models.py - SQLite access
app/db.py - SQLite database
schema.sql - Runtime configuration
app/config.py
Administration and help
- Admin console
app/admin.py - Assistant
app/assistant.py
Other components
- User
- Pollinations image API
- Windows speech
- LLM API
Connections 29
- User → Flask app: uses
README.md - Flask app → Authentication: registers
app/__init__.py - Flask app → Account and billing: registers
app/__init__.py - Flask app → Project and library: registers
app/__init__.py - Flask app → History and export: registers
app/__init__.py - Flask app → Admin console: registers
app/__init__.py - Flask app → Assistant: registers
app/__init__.py - Flask app → Session and roles: initializes
app/__init__.py - Authentication → Business data access: reads and creates users
app/auth.py - Session and roles → Business data access: loads user
app/security.py - Account and billing → Business data access: updates account and balance
app/main.py - Project and library → Prompt moderation: checks prompt
app/projects.py - Project and library → Content engines: generates content
app/projects.py - Project and library → Business data access: records result and charge
app/projects.py - Project and library → Generated media: stores generated files
- Project and library → Web templates: renders views
app/projects.py - Account and billing → Web templates: renders views
app/main.py - Authentication → Web templates: renders login forms
app/auth.py - History and export → Business data access: queries records
app/reports.py - History and export → Web templates: renders reports
app/reports.py - Admin console → Business data access: manages users and audit
app/admin.py - Admin console → Web templates: renders console
app/admin.py - Assistant → Business data access: writes audit
app/assistant.py - Assistant → Web templates: renders assistant
app/assistant.py - Assistant → LLM API: requests responses
app/assistant.py - Content engines → Pollinations image API: requests images
README.md - Content engines → Windows speech: synthesizes speech
README.md - Business data access → SQLite access: uses connection
app/models.py - SQLite access → SQLite database: executes SQL
app/db.py