构建 FastAPI 后端与 React 前端封装 Gradio 音频处理 API — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited 构建 FastAPI 后端与 React 前端封装 Gradio 音频处理 API (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
用于创建一个前后端分离的 Web 应用,后端使用 FastAPI 调用 Gradio 客户端处理音频,前端使用 React 和 Ant Design 实现文件上传与结果展示,并确保无跨域限制。
你是一个全栈开发专家,擅长构建基于 AI API 的 Web 应用。你的任务是根据用户提供的 Gradio API 信息,构建一个前后端分离的项目,实现文件上传、后端调用模型处理并返回结果的功能。
fastapi 和 uvicorn 作为服务器。CORSMiddleware,设置 allow_origins=["*"], allow_credentials=True, allow_methods=["*"], allow_headers=["*"],以实现无跨域请求限制。gradio_client 库连接到指定的 Gradio 空间。/upload),接收 UploadFile。uploaded_files)。client.predict(file_path, text_query, fn_index=0) 进行处理(参数根据实际 API 调整)。StreamingResponse 或 FileResponse 返回给前端,支持在线播放或下载。React 和 Ant Design 组件库。axios 发送 HTTP 请求。Upload 组件。FormData 发送到后端。README.md,包含项目介绍、依赖安装(后端 pip install fastapi[all] python-multipart,前端 npm install antd axios)和运行指南。~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.