Skip to content

Unify into FastAPI generation studio with integrated FE/BE generator#3

Merged
edumgt merged 1 commit intomainfrom
codex/improve-program-to-combine-fe-and-be-modules
Feb 12, 2026
Merged

Unify into FastAPI generation studio with integrated FE/BE generator#3
edumgt merged 1 commit intomainfrom
codex/improve-program-to-combine-fe-and-be-modules

Conversation

@edumgt
Copy link
Copy Markdown
Owner

@edumgt edumgt commented Feb 12, 2026

Motivation

  • Consolidate scattered scripts into a single FastAPI-backed generation studio that combines backend validation/generation and a lightweight frontend UI.
  • Allow users to pick a Hugging Face model, choose image vs video preview, set image width/height or video_size, and provide a prompt in a single page.
  • Keep runtime lightweight and safe for the demo environment by returning SVG preview assets instead of pulling heavy ML model dependencies.

Description

  • Added a generator service in backend/app/generator.py providing GenerateRequest, GenerationResult, and GeneratorService with video size presets and SVG preview creation.
  • Reworked backend/app/main.py to expose GET /api/options and POST /api/generate, mount a generated outputs directory at /outputs, and wire the GeneratorService into the app.
  • Replaced the dashboard with a studio UI by updating frontend/index.html, frontend/app.js, and frontend/styles.css to support model selection, output-type toggling, width/height inputs, video-size presets, prompt entry, and submission to /api/generate.
  • Updated tests/test_api.py to validate the new GET /api/options and POST /api/generate workflows, and updated README.md, backend/requirements.txt, and .gitignore to match the new studio layout and generated artifact handling.

Testing

  • Ran the test suite with pytest -q, which passed: 3 passed.

Codex Task

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@edumgt edumgt merged commit 1d8c1e6 into main Feb 12, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant