The way i get the Flask app from Dagit is: ```with...
# announcements
x
The way i get the Flask app from Dagit is:
Copy code
with DagsterInstance.get() as instance:

    target = WorkspaceFileTarget(paths=WORKSPACE_PATHS)
    with workspace_from_load_target(target) as workspace:
        if not workspace:
            raise Exception("Failed to created workspace")

        return create_app_from_workspace(workspace, instance)