Refactor app.py: Improve code organization, enhance function definitions, and update variable naming conventions for clarity
#1
by Snaseem2026 - opened
Key improvements:
-Uses lru_cache for model loading.
-Adds docstrings and type hints.
-Handles Hugging Face token more robustly.
-Improves error handling and user feedback.
-Cleans up imports and code structure.
-Adds an example input for better UX.