AI 生成: 一个基于 Flask 的 Web 应用,用户输入主题后由 AI 生成结构化的登记手册,包含封面、目录、正文与附录,并支持导出为 Markdown 文件。

This commit is contained in:
admin
2026-09-30 20:41:38 +08:00
commit 1750ff3a83
9 changed files with 498 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>AI 生成登记手册</title>
<link rel="stylesheet" href="static/style.css" />
</head>
<body>
<main class="container">
<header class="header">
<h1>AI 生成登记手册</h1>
<p class="subtitle">输入主题,一键生成结构化的登记手册</p>
</header>
<section class="panel">
<label for="topic">手册主题</label>
<div class="row">
<input id="topic" type="text" placeholder="例如:设备借用登记" />
<button id="generate-btn">生成手册</button>
</div>
<p id="status" class="status"></p>
</section>
<section class="panel">
<div class="panel-head">
<h2>预览</h2>
<button id="export-btn" class="secondary" disabled>导出 Markdown</button>
</div>
<pre id="output" class="output">生成的手册将显示在这里…</pre>
</section>
</main>
<script src="static/app.js"></script>
</body>
</html>