Spaces:
Sleeping
Sleeping
Commit History
-
fix: comprehensive CPU patches for ALL extractors (video + audio + text)
Igoni AgentVideo extractor dies on 'model.model.to(self.image.device)' where device=cuda. Audio extractor also defaults to cuda. Nuclear approach: 1. Patch HuggingFaceText._load_model (text/Llama) 2. Patch VideoFeature._load_model (video frames) 3. Patch AudioFeature._load_model (audio WAV) 4. Monkey-patch torch.nn.Module.to to redirect cuda->cpu globally This ensures NO extractor ever tries to move models to cuda on CPU Spaces.ac23582 -
add version tag to index endpoint for deploy tracking
Igoni Agent8da871d -
fix: skip audio extraction on CPU (audio extractor needs CUDA)
Igoni AgentExtractAudioFromVideo extracts WAV, then audio extractor tries to process it with CUDA which fails on HF CPU Spaces. Now detects CUDA availability: - CPU: Video events with filepath only -> visual extractor reads real frames - GPU: Full pipeline with audio extractionb9b2df9 -
fix: use proper Video events with filepath + ExtractAudioFromVideo transform
Igoni AgentThe official get_events_dataframe() needs whisperx/uvx which isn't in Docker. Instead, build Video events with filepath directly and run the same transforms manually (ExtractAudioFromVideo + ChunkEvents + RemoveMissing). This skips transcription but still extracts real visual + audio features.c40f26e -
fix: use official TribeModel.get_events_dataframe() pipeline
Igoni AgentThe old code manually built dummy Visual events with timestamps only. The model never saw actual video frames -> identical predictions for all inputs. Now uses the official API: - model.get_events_dataframe(video_path=...) creates proper Video events - ExtractAudioFromVideo runs to get audio from video - ChunkEvents splits long clips - ExtractWordsFromAudio transcribes speech - Visual extractor actually reads and processes frames Also adds gTTS + langdetect for text-to-brain pipeline.10f1be9 -
Add /predict_raw endpoint - full prediction tensor output
Igoni Agent619ca35 -
Make video inference CPU-safe on Spaces
Igoni Agentd688be6 -
Make image inference CPU-safe
Igoni Agent9ce7593 -
Fix image endpoint: use WAV audio + silent nullsrc
Verified signature822fb19 -
Fix: add timeline field to Audio events
Verified signature2f3415e -
Add /predict_image endpoint - converts image to video for brain scoring
Verified signature72713f6 -
Add video/audio endpoints - bypass Llama tokenizer gate
Verified signature6e60f86 -
Upload Flask API app with BFloat16 fix
Verified signature39b3d5a