Initialize demo variable first, then create - ensure it's always set 7a52211 arahrooh commited on Nov 30, 2025
Add explicit demo validation and final checks to ensure Spaces can detect it 7310187 arahrooh commited on Nov 30, 2025
Create demo unconditionally at module level - ensure Spaces can always detect it f67cadb arahrooh commited on Nov 30, 2025
Refactor demo creation to match HF Spaces documentation pattern - create directly at module level 74d36f0 arahrooh commited on Nov 30, 2025
Simplify demo creation - remove try/except wrapper that might interfere with Spaces detection c98a991 arahrooh commited on Nov 30, 2025
Fix logger initialization order - logger must be defined before use f3b3fd8 arahrooh commited on Nov 30, 2025
Ensure demo is always set at module level for Spaces detection 68cc4a9 arahrooh commited on Nov 30, 2025
Simplify demo creation - remove try/except wrapper for cleaner module-level assignment 9c35d2f arahrooh commited on Nov 30, 2025
Ensure demo is always defined for Spaces with better error handling 56dc312 arahrooh commited on Nov 30, 2025
Fix AttributeError: use property for args instead of direct assignment dffdda5 arahrooh commited on Nov 30, 2025
Fix AttributeError: use bot.args.model instead of bot.current_model 237ee8e arahrooh commited on Nov 30, 2025
Use Hugging Face Inference API on Spaces instead of loading models locally ecb9bc5 arahrooh commited on Nov 30, 2025
Fix triple model loading: prevent main() from running on Spaces 45ed548 arahrooh commited on Nov 30, 2025
Optimize memory usage: use float16 on CPU and fix double loading 1553f78 arahrooh commited on Nov 30, 2025