better organize vibeui
Some checks failed
ci / build (push) Failing after 0s
ci / Tests & Checks (push) Failing after 1s

This commit is contained in:
CJ_Clippy 2025-07-19 10:55:18 -08:00
parent a2500bb3b3
commit 94e2d6b732
4 changed files with 5 additions and 6 deletions

View File

@ -1,6 +1,5 @@
!dist/vibeui.pt
runs
dist
vibeui
venv
src/test

View File

@ -1,4 +1,3 @@
runs
venv
vibeui

View File

@ -21,7 +21,8 @@ COPY --from=ipfs/kubo:v0.36.0 /usr/local/bin/ipfs /usr/local/bin/ipfs
# Bundle the vibeui pytorch model
RUN mkdir -p /app/dist/vibeui \
&& wget -q https://gitea.futureporn.net/futureporn/fp/raw/branch/main/apps/vibeui/best.pt -O /app/dist/vibeui/vibeui.pt
&& wget -q https://gitea.futureporn.net/futureporn/fp/raw/branch/main/apps/vibeui/dist/vibeui.pt -O /app/vibeui/vibeui.pt \
&& wget -q https://gitea.futureporn.net/futureporn/fp/raw/branch/main/apps/vibeui/dist/data.yaml -O /app/vibeui/data.yaml
# Copy and install dependencies
COPY package.json package-lock.json ./

View File

@ -139,7 +139,7 @@ export async function inference(videoFilePath: string): Promise<string> {
// Generate a unique name based on video name + UUID
const uniqueName = nanoid()
const customProjectDir = 'runs' // or any custom folder
const customProjectDir = 'vibeui/runs' // or any custom folder
const outputPath = join(env.APP_DIR, customProjectDir, uniqueName)
await spawn('./venv/bin/yolo', [