Spaces:
Sleeping
Sleeping
Commit History
-
Fix model loading stuck forever + unhandled TTS crash in conversation mode
Broulaye Doumbia_do_load_whisper had import statements outside the try/except block — if torch or transformers imports failed the thread crashed silently, leaving _model_status permanently at "loading…" with no retry. Wrap the entire function body so any exception is captured. Also add a 180s stuck-load timeout in _ensure_whisper_loaded so the timer can recover and retry. Wrap _tts.synthesize() in try/except in both conversation and sensor modes so a TTS failure returns the text response instead of crashing the whole handler. Align .env.example with the variable names app.py actually reads (WHISPER_MODEL_ID, LLM_MODEL_ID) and re-read LLM_MODEL_ID after load_dotenv() in __main__. Made-with: Cursor618eab5
-
Initial commit: Sahel-Agri Voice AI
jefffffff976db545