File size: 448 Bytes
c232276
 
 
2306e1a
c232276
 
 
 
 
1
2
3
4
5
6
7
8
9
# 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