# app.py from flux_app.frontend import Frontend # Import Frontend from the package from flux_app.backend import ModelManager if __name__ == "__main__": model_manager = ModelManager() # Initialize models (backend) frontend = Frontend(model_manager) # Create frontend, passing the model manager app = frontend.create_ui() # Create the Gradio app app.queue() # Important for handling concurrency app.launch() # Launch the app