1.7 KiB
1.7 KiB
Run and deploy your AI Studio app
This contains everything you need to run your app locally.
View your app in AI Studio: https://ai.studio/apps/b9650cf9-3b26-4e84-a699-78ba380bb4db
Run Locally
Prerequisites: Node.js, Python 3.8+
- Install Python dependencies in the project root:
pip install -r ../requirements.txt - Install website dependencies:
npm install - Start the local Python backend:
npm run backend - In another terminal, run the website:
npm run dev
The website talks to http://127.0.0.1:8787 and maps UI actions to:
head_extension_app.py: preview and four-state DICOM deformation outputgenerate_head_extension_video.py: 0° to target-angle MP4 generationvideo_generator_app.py: kept as the desktop GUI wrapper for the same video generator
Data Flow
The Image Library is now the source of DICOM data for the workstation:
- Open
数据影像库. - Click
上传文件夹to choose a folder that contains.dcmfiles, or click上传压缩包to upload a.ziparchive containing.dcmfiles. - Click
调阅工作站on a library item. - The
影像变换工作站will run preview, four-state deformation, and video generation from that selected library dataset. - Four-state deformation results are packaged by the backend as a downloadable
.zipfile under../web_results/. - Generated videos are also written under
../web_results/and exposed as downloadable.mp4files.
Uploaded DICOM datasets are stored by the local backend under ../web_library/.