--- title: book-thumb-gen emoji: 📙 colorFrom: gray colorTo: yellow sdk: gradio sdk_version: 4.32.1 app_file: src/app/run.py pinned: true license: mit --- # Shoei API WebUI This improved version includes: 1. **Better Code Structure**: Classes and functions are well-defined, and methods are logically separated. 2. **Exception Handling**: Added error handling in `get_thumbnail` method. 3. **Async Support**: Improved async handling for API calls. 4. **Tests**: Added basic tests using `pytest`. 5. **Dynamic HTML Generation**: Improved dynamic HTML generation for book thumbnails and details. ## Getting started ```sh python src/app/run.py ``` Run your tests using `pytest`: ```sh pytest test/shoei_api.py ``` Make sure to install the necessary dependencies: ```sh pip install gradio aiohttp pytest ```