Commit graph

143 commits

Author SHA1 Message Date
Harshad
da2a247e97 feat(video): change layout to vertical 2026-02-04 22:07:05 +05:30
DeepakasBTG
2d73f0aa61 Merge pull request #34 from DeepakasBTG/frontend
Result: Javascript removed & created js file
2026-02-04 20:57:28 +05:30
Deepak Salunke
4c2de1f8a7 Result: Javascript removed & created js file 2026-02-04 20:56:31 +05:30
michael
05a8115dd0 feat: add human detection using NudeNet for pet photo validation
Adds server-side image safety check to ensure users upload pet photos instead
of human images. Uses NudeNet with 0.5 confidence threshold and fail-open
behavior. Frontend shows loading state during analysis and error UI when
humans are detected.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 08:57:23 -06:00
michael
ce95d61796 feat: add server-side profanity filter with real-time validation
Add profanity detection using better-profanity library with:
- Real-time API validation during typing (500ms debounce)
- Defense-in-depth server-side validation on form submission
- Visual feedback with red borders and warning message
- Submit button disabled when profanity detected
- Fail-open behavior on API errors to not block users

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 08:29:58 -06:00
DeepakasBTG
ce48397e8b Merge pull request #33 from DeepakasBTG/frontend
Frontend
2026-02-04 19:56:00 +05:30
Deepak Salunke
48cb981bb0 Frontend: Minor changes 2026-02-04 19:55:32 +05:30
michael
49e548e3ba docs: remove spec reading instruction from CLAUDE.md
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 08:07:46 -06:00
michael
7fa4132cd7 feat(api): add audio_url to status endpoint response
Allows frontend to access the MP3 audio URL as soon as download
completes, even while video generation is still in progress.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 08:04:55 -06:00
Deepak Salunke
7401b7c188 Body color changes 2026-02-04 18:37:05 +05:30
DeepakasBTG
de2b52cc12 Merge pull request #32 from DeepakasBTG/frontend
Result: Issue solved
2026-02-04 18:25:42 +05:30
Deepak Salunke
f459459ed3 Result: Issue solved 2026-02-04 18:23:49 +05:30
Harshad
5db89c82b2 fix(waiting): missing sessionID function 2026-02-04 18:09:40 +05:30
DeepakasBTG
d665f82700 Merge pull request #31 from DeepakasBTG/frontend
Result: Record image implemented
2026-02-04 17:54:10 +05:30
Deepak Salunke
8e2806f71f Result: Record image implemented 2026-02-04 17:46:43 +05:30
Harshad
5da1cb8fff refactor(waiting): c;lean-up JS logic with main func 2026-02-04 17:04:59 +05:30
Harshad
e464ba5980 feat(waiting): add & position record needle 2026-02-04 16:57:12 +05:30
DeepakasBTG
e10a14f8bb Merge pull request #30 from DeepakasBTG/frontend
Result & Waiting: WIP on Record Spin & needle
2026-02-04 16:41:54 +05:30
Deepak Salunke
53ae7e4247 Result & Waiting: WIP on Record Spin & needle 2026-02-04 16:41:30 +05:30
michael
2d9c6ca7a7 refactor: convert polling tasks to event-based architecture
- Remove process_pending_queue and check_credits scheduled tasks
- Add check_submission_timeout task for per-submission timeout handling
- Modify send_to_sonauto to schedule timeout check after successful API call
- Reduce check_timeouts frequency to 30min (safety net only)
- Update submissions endpoint to use apply_async with better error logging
- Remove unused config settings (QUEUE_PROCESSOR_INTERVAL, CREDITS_CHECK_INTERVAL)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 00:28:52 -06:00
DeepakasBTG
94c3846c54 Merge pull request #29 from DeepakasBTG/frontend
Home.js file issue solved
2026-02-04 11:53:26 +05:30
Deepak Salunke
ef05ecf89d Home.js file issue solved 2026-02-04 11:52:49 +05:30
michael
621a0ae097 feat: add dedicated Celery queue for video generation
Route create_video task to dedicated 'video' queue with concurrency=2.
Default worker now has concurrency=10 for all other tasks.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 00:11:37 -06:00
michael
4463a6eb04 perf: optimize video generation with faster encoding
- Change frame format from PNG to JPEG (quality 85) for faster encoding
- Use mjpeg input codec instead of png for FFmpeg
- Change preset from 'faster' to 'superfast' for quicker encoding

Trade-off: ~20-30% larger file size for significantly faster generation.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 00:01:48 -06:00
DeepakasBTG
8519779f8e Merge pull request #28 from DeepakasBTG/frontend
Minor frontend changes
2026-02-04 11:10:27 +05:30
DeepakasBTG
a3a518299f Merge branch 'main' into frontend 2026-02-04 11:10:19 +05:30
Deepak Salunke
195592992f Minor frontend changes 2026-02-04 11:07:57 +05:30
michael
6a7429cb9e feat: save composite record image and return URL in results API
Add composite PNG generation (vinyl record + pet photo with transparent
background, no needle) saved to storage/images/. The results API now
returns record_image_url pointing to the composite or default-record.png
for submissions without a user photo.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 19:08:52 -06:00
michael
12a6b5e7af feat: add Happy Hardcore music vibe
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 18:25:35 -06:00
michael
05dcfd6613 fix: make default-record.png square (736x736) to match vinyl template
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 18:20:20 -06:00
michael
e226d97ee8 fix: remove required attribute from image upload input
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 18:08:20 -06:00
michael
1d6aa014ec feat: add Dubstep and Metal Ballad music vibes
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 18:05:59 -06:00
michael
c6ee1e6695 feat: make pet image upload optional
Users can now submit the form without uploading a photo. When no photo is
provided, the video will display the default "Pet Love Songs" record instead
of a pet image in the vinyl center.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 18:03:25 -06:00
michael
058f2c2435 added record-for-devs-default.png 2026-02-03 17:48:01 -06:00
michael
1196ad17c7 feat: dispatch to Sonauto immediately on submission
Triggers send_to_sonauto.delay() right after creating a submission,
eliminating up to 60 seconds of wait time. The periodic task remains
as a fallback for edge cases (Celery unavailable, immediate dispatch fails).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 17:23:51 -06:00
michael
f7ef053d81 fix: resolve 'flush of closed file' error in video generation
Replace communicate() with stderr.read() + wait() after manually
closing stdin. communicate() tries to flush stdin internally which
fails when stdin is already closed.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 17:12:38 -06:00
michael
c3d29426e0 refactor: use Sonauto streaming URL directly
Replace backend proxy streaming endpoint with direct access to
Sonauto's public streaming URL (api-stream.sonauto.ai). This
simplifies the architecture and reduces latency.

- Update waiting.php to use task_id from status API response
- Add autoplay attribute to audio element per Sonauto docs
- Remove stream.py proxy router (no longer needed)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 14:32:48 -06:00
Harshad
a2332f779a feat(UI): cookie consent screen 2026-02-03 22:23:16 +05:30
Harshad
8e40afc248 restrict form input with bannedWords 2026-02-03 21:37:49 +05:30
DeepakasBTG
0823fc0f4f Merge pull request #27 from DeepakasBTG/frontend
Landing: cookie policy changes
2026-02-03 20:05:31 +05:30
Deepak Salunke
7d7a932cc6 Landing: cookie policy changes 2026-02-03 20:05:01 +05:30
DeepakasBTG
2e4b0c9711 Merge pull request #26 from DeepakasBTG/frontend
Landing: cookie policy popup added
2026-02-03 20:03:14 +05:30
Deepak Salunke
1521b9c467 Landing: cookie policy popup added 2026-02-03 20:02:29 +05:30
Harshad
1ba1364a42 k6: multiple user test script 2026-02-03 18:43:06 +05:30
DeepakasBTG
bf801af5ad Merge pull request #25 from DeepakasBTG/frontend
Result: CTA links added
2026-02-03 18:37:53 +05:30
Deepak Salunke
da7b7645ad Result: CTA links added 2026-02-03 18:37:21 +05:30
DeepakasBTG
4d810aac4e Merge pull request #24 from DeepakasBTG/frontend
Landing: Drop down css updated
2026-02-03 17:01:41 +05:30
Deepak Salunke
a6f0414958 Landing: Drop down css updated 2026-02-03 17:01:07 +05:30
DeepakasBTG
2a825f1db7 Merge pull request #23 from DeepakasBTG/frontend
Song lyrics css changes
2026-02-03 15:01:32 +05:30
Deepak Salunke
11c9c03583 Song lyrics css changes 2026-02-03 15:00:38 +05:30