Spaces:
Sleeping
Sleeping
| """ | |
| Main application entry point for the Landmark Classification system. | |
| Initializes components and launches the Gradio interface. | |
| """ | |
| from classifier import LandmarkClassifier | |
| from custom_theme import custom_theme | |
| from src.utils.examples import load_categories, create_example_data | |
| from src.ui.interface import create_interface | |
| def main(): | |
| # Initialize components | |
| classifier = LandmarkClassifier() | |
| categories = load_categories() | |
| category_examples = create_example_data(categories) | |
| # Create and launch interface | |
| iface = create_interface(classifier, category_examples, custom_theme) | |
| iface.launch() | |
| if __name__ == "__main__": | |
| main() | |