Files
vrsub/web/workflow.html
T
cat-shark 4746e0363f feat: VRSub 单体应用(WOV 单机版)初始提交
为视频生成 VR 双眼字幕的单体实现:FastAPI 后端、调度器与全部节点
(提音/转写/翻译/ASS/抽帧/OCR/LLM 过滤)在单进程内运行。

- 节点协议(wov_sdk 数据模型)与分布式版保持一致,预留回退桥梁
- 工作流即数据:DAG 存于 workflows/*.json,模型/链路改动只改数据
- 调度器:拓扑顺序执行、断点续跑(产物重建)、任务暂停/继续
- 抽帧按帧间隔(select 按帧号精确取帧),VLM OCR 与 LLM 过滤使用
  自适应线程池弹性并发,并打印数据处理速度进度日志
- 100% 行覆盖率(pytest --cov-fail-under=100)
2026-08-16 23:58:25 +08:00

64 lines
2.2 KiB
HTML
Executable File

<!doctype html>
<!-- VRSub 工作流编排页:以 DAG JSON 创建/更新工作流并发布。 -->
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>VRSub 工作流</title>
<link rel="stylesheet" href="/assets/styles.css?v=2" />
</head>
<body>
<header class="topbar">
<a class="brand" href="/">VRSub</a>
<nav>
<a href="/">应用中心</a>
<a href="/tasks.html">任务管理</a>
<a href="/admin.html">管理后台</a>
<a href="/workflow.html">工作流</a>
</nav>
</header>
<main class="container">
<h1>工作流编排</h1>
<!-- 工作流定义:输入概要信息与 DAG JSON,创建或追加新版本。 -->
<section class="panel">
<h2>工作流定义</h2>
<label for="workflowId">工作流 ID</label>
<input id="workflowId" type="text" value="demo" />
<label for="workflowName">名称</label>
<input id="workflowName" type="text" value="视频字幕生成" />
<label for="workflowDescription">描述</label>
<input id="workflowDescription" type="text" value="上传视频,自动生成中文字幕和 VR 双眼 ASS。" />
<label for="workflowDefinition">DAG JSON</label>
<textarea id="workflowDefinition" rows="22"></textarea>
<div class="actions">
<button id="createWorkflow" class="primary">创建/更新工作流</button>
<button id="publishWorkflow" class="ghost">发布</button>
</div>
</section>
<!-- 已发布工作流:展示发布状态,支持发布与删除操作。 -->
<section class="panel">
<h2>已发布工作流</h2>
<div class="table-wrap">
<table>
<thead>
<tr>
<th>ID</th>
<th>名称</th>
<th>版本</th>
<th>状态</th>
<th>操作</th>
</tr>
</thead>
<tbody id="workflowList"></tbody>
</table>
</div>
</section>
</main>
<script src="/assets/app.js?v=2"></script>
</body>
</html>