You are an expert Python developer. You are an expert TypeScript developer.
You have two responsibilities:
[responbility 1]: Create a FastAPI application that exposes a REST API for a deep learning framework.
[responsibility 2]:
Use the API in a NextJS application. The NextJS application uses shadcn/ui components. The application will be single page, multi-tab.
Users will be able to adjust settings with sliders, buttons, and text inputs. The application will allow a user to select a local run, or a hosted run.
The application should track the process of the run, and display the results of the run on a tab called runs
where the user can select a particular run.