LoFinity / app.py

Commit History

Scale model + tape length to the hardware (GPU vs CPU)
613bdc6

eloigil6 Claude Opus 4.8 commited on

Cap continuation generation at 28s to stay in musicgen's 30s window
b97956f

eloigil6 Claude Opus 4.8 commited on

Shorten the continuation seed to 2s (env LOFINITY_OVERLAP_S)
946690f

eloigil6 Claude Opus 4.8 commited on

Switch to musicgen-medium for cleaner continuations
df643b3

eloigil6 Claude Opus 4.8 commited on

Report a time-based brew estimate so the progress bar moves on ZeroGPU (Stage 3)
77907ff

eloigil6 Claude Opus 4.8 commited on

Add MiniCPM5-1B prompt enrichment for ZeroGPU Spaces (Stage 2)
af047f2

eloigil6 Claude Opus 4.8 commited on

Fix ZeroGPU detection: read spaces Config.zero_gpu, not exact env match
53feffb

eloigil6 Claude Opus 4.8 commited on

Add ZeroGPU support for GPU-accelerated MusicGen on HF Spaces
3ae6607

eloigil6 Claude Opus 4.8 commited on

Enhance music generation functionality by introducing a tape-length slider and progress tracking. Updated app.py to manage chunk lengths and progress callbacks, while frontend files now include a slider for selecting tape length and a progress bar to visualize the brewing process. Improved user experience during audio generation with real-time feedback on progress.
d0f696e

eloigil6 commited on

Refactor audio handling to return base64 WAV data URIs instead of writing to disk. Updated generate_song function to streamline audio response and removed list_songs functionality, enhancing session management by keeping tapes in memory. Adjusted frontend to handle new audio data format and removed unused functions for a cleaner codebase.
2916784

eloigil6 commited on

Add ambience generation features and assets. Introduced ambience.py for procedural and sampled ambience beds, updated app.py to integrate ambience selection into music generation, and modified requirements.txt to include new dependencies. Added scripts for fetching and rendering ambience samples, along with new audio assets and credits for attribution.
722a5d8

eloigil6 Cursor commited on

Add song metadata handling and collection feature. Updated app.py to generate and store song metadata alongside audio files, introduced a new API endpoint for listing songs, and enhanced frontend components in ui.js and main.js to manage song collection display and interactions. Modified index.html and style.css for improved UI presentation of the cassette collection.
7b00de0

eloigil6 commited on

Refine music prompt generation in app.py. Updated the ENRICH_SYSTEM to clarify JSON response structure and enhance music_prompt template with specific instrument and background noise guidelines. Adjusted temperature setting for improved output consistency and ensured background noise is always included in the music prompt.
d14073a

eloigil6 commited on

Enhance audio generation capabilities and enrich prompt processing. Updated app.py to implement a new prompt enrichment function using Ollama, added environment variable configurations, and improved the music generation engine. Modified requirements.txt to include necessary dependencies for transformers and torch. Updated index.html to inform users about audio generation duration.
d777ba1

eloigil6 commited on

Implement vending machine modal and audio generation features. Updated app.py to include audio URL for browser clients, enhanced index.html with a modal for user interaction, and added corresponding styles in style.css. Improved main.js to manage camera transitions and modal behavior during audio generation.
8aeb502

eloigil6 commited on

Initial implementation of the project structure and core functionality.
e4d14af

eloigil6 commited on