我们平台有三个 AI 能力,拍照解题,拍照生成类题,手写文字识别,请参考百度开发平台,阿里云等平台,手写生成一个 AI 平台的首页,其中的开发能力这一块包含三个能力,每一个能力点击后,都会进入一个当前能力的页面,页面包含一些简单的能力介绍以及能力体验功能,三个功能的测试一致,都是上传图片,将图片转换成 base64 字符,调用后端的接口,然后将结果进行渲染展示,在等待后端返回的过程中要有 loading 效果,并且文本展示框要支持 markdown 文本展示以及数学公式文字的渲染展示,后端请求统一采用 post 请求,入参字段为imgBase64,后端的返回里面都包含 code 字段,字段为 0 表示正常,其他值表示异常. 三个能力对应的请求 url 和后端具体返回如下: 拍照解题: 请求url:/ai/api/analysis/img 后端返回格式为 { "code": 0, "msg": null, "data": { "analysis": "e4nz5l" } } 拍照生成类题: 请求url:/ai/api/generate/img 后端返回格式如下,返回值包括题目,答案,解析,以及知识点四个字段,请按顺序进行展示,并标注清楚 { "code": 0, "msg": null, "data": { "answers": [ { "question": "src8my", "answer": "d3pukn", "analysis": "rw3fba", "knowledgePoint": "z728wd" } ] } } 手写文字识别: 请求url:/ai/api/ocr/handwrite 后端返回格式如下: { "code": 0, "msg": null, "data": [ [ [ [ [ 41.0, 162.0 ], [ 70.0, 162.0 ], [ 70.0, 184.0 ], [ 41.0, 184.0 ] ] ], [ [ "田", 0.7661811113357544 ] ] ] ] } - Initial Deployment
Browse files- README.md +7 -5
- index.html +432 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: test
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: purple
|
| 5 |
+
colorTo: pink
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,432 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="zh-CN">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>智能AI开发平台</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/4.3.0/marked.min.js"></script>
|
| 10 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.2.0/es5/tex-mml-chtml.min.js"></script>
|
| 11 |
+
<script>
|
| 12 |
+
tailwind.config = {
|
| 13 |
+
theme: {
|
| 14 |
+
extend: {
|
| 15 |
+
colors: {
|
| 16 |
+
primary: '#4361ee',
|
| 17 |
+
secondary: '#3a0ca3',
|
| 18 |
+
accent: '#7209b7',
|
| 19 |
+
highlight: '#f72585'
|
| 20 |
+
}
|
| 21 |
+
}
|
| 22 |
+
}
|
| 23 |
+
}
|
| 24 |
+
</script>
|
| 25 |
+
<style>
|
| 26 |
+
.hero-pattern {
|
| 27 |
+
background-color: #eef1ff;
|
| 28 |
+
background-image: radial-gradient(#4361ee 1px, transparent 1px);
|
| 29 |
+
background-size: 30px 30px;
|
| 30 |
+
}
|
| 31 |
+
.upload-area {
|
| 32 |
+
transition: all 0.3s ease;
|
| 33 |
+
}
|
| 34 |
+
.upload-area.dragover {
|
| 35 |
+
transform: scale(1.02);
|
| 36 |
+
box-shadow: 0 0 20px rgba(67, 97, 238, 0.4);
|
| 37 |
+
}
|
| 38 |
+
.result-container {
|
| 39 |
+
min-height: 200px;
|
| 40 |
+
transition: height 0.3s ease;
|
| 41 |
+
}
|
| 42 |
+
.lds-ripple {
|
| 43 |
+
display: inline-block;
|
| 44 |
+
position: relative;
|
| 45 |
+
width: 80px;
|
| 46 |
+
height: 80px;
|
| 47 |
+
}
|
| 48 |
+
.lds-ripple div {
|
| 49 |
+
position: absolute;
|
| 50 |
+
border: 4px solid #3a0ca3;
|
| 51 |
+
opacity: 1;
|
| 52 |
+
border-radius: 50%;
|
| 53 |
+
animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
|
| 54 |
+
}
|
| 55 |
+
.lds-ripple div:nth-child(2) {
|
| 56 |
+
animation-delay: -0.5s;
|
| 57 |
+
}
|
| 58 |
+
@keyframes lds-ripple {
|
| 59 |
+
0% {
|
| 60 |
+
top: 36px;
|
| 61 |
+
left: 36px;
|
| 62 |
+
width: 0;
|
| 63 |
+
height: 0;
|
| 64 |
+
opacity: 0;
|
| 65 |
+
}
|
| 66 |
+
4.9% {
|
| 67 |
+
top: 36px;
|
| 68 |
+
left: 36px;
|
| 69 |
+
width: 0;
|
| 70 |
+
height: 0;
|
| 71 |
+
opacity: 0;
|
| 72 |
+
}
|
| 73 |
+
5% {
|
| 74 |
+
top: 36px;
|
| 75 |
+
left: 36px;
|
| 76 |
+
width: 0;
|
| 77 |
+
height: 0;
|
| 78 |
+
opacity: 1;
|
| 79 |
+
}
|
| 80 |
+
100% {
|
| 81 |
+
top: 0;
|
| 82 |
+
left: 0;
|
| 83 |
+
width: 72px;
|
| 84 |
+
height: 72px;
|
| 85 |
+
opacity: 0;
|
| 86 |
+
}
|
| 87 |
+
}
|
| 88 |
+
</style>
|
| 89 |
+
</head>
|
| 90 |
+
<body class="bg-gray-50 text-gray-800 font-sans">
|
| 91 |
+
<!-- 导航栏 -->
|
| 92 |
+
<nav class="bg-white shadow-md py-4 px-6 flex justify-between items-center">
|
| 93 |
+
<div class="flex items-center">
|
| 94 |
+
<i class="fas fa-brain text-primary text-3xl mr-2"></i>
|
| 95 |
+
<h1 class="text-2xl font-bold text-gray-800">智能AI开发平台</h1>
|
| 96 |
+
</div>
|
| 97 |
+
<div class="hidden md:flex space-x-6">
|
| 98 |
+
<a href="#" class="font-medium hover:text-primary transition">首页</a>
|
| 99 |
+
<a href="#" class="font-medium hover:text-primary transition">产品介绍</a>
|
| 100 |
+
<a href="#" class="font-medium hover:text-primary transition">文档中心</a>
|
| 101 |
+
<a href="#" class="font-medium hover:text-primary transition">技术支持</a>
|
| 102 |
+
</div>
|
| 103 |
+
<div>
|
| 104 |
+
<button class="px-4 py-2 rounded-full bg-gradient-to-r from-primary to-secondary text-white font-medium hover:opacity-90 transition">控制台</button>
|
| 105 |
+
</div>
|
| 106 |
+
</nav>
|
| 107 |
+
|
| 108 |
+
<!-- 英雄区域 -->
|
| 109 |
+
<section class="hero-pattern py-16 px-4 md:px-0">
|
| 110 |
+
<div class="max-w-7xl mx-auto text-center">
|
| 111 |
+
<h1 class="text-4xl md:text-6xl font-bold text-gray-800 leading-tight">
|
| 112 |
+
赋能开发者的 <span class="text-primary">AI引擎</span>
|
| 113 |
+
</h1>
|
| 114 |
+
<p class="mt-6 text-xl text-gray-600 max-w-3xl mx-auto">
|
| 115 |
+
提供强大AI能力,帮助开发者快速构建智能应用
|
| 116 |
+
</p>
|
| 117 |
+
<div class="mt-8 flex justify-center gap-4">
|
| 118 |
+
<button class="px-8 py-3 bg-primary text-white rounded-full font-medium hover:bg-opacity-90 transition">
|
| 119 |
+
立即体验
|
| 120 |
+
</button>
|
| 121 |
+
<button class="px-8 py-3 border-2 border-primary text-primary rounded-full font-medium hover:bg-gray-50 transition">
|
| 122 |
+
查看文档
|
| 123 |
+
</button>
|
| 124 |
+
</div>
|
| 125 |
+
</div>
|
| 126 |
+
</section>
|
| 127 |
+
|
| 128 |
+
<!-- 核心能力 -->
|
| 129 |
+
<section class="py-16 px-4 md:px-8">
|
| 130 |
+
<div class="max-w-7xl mx-auto">
|
| 131 |
+
<div class="text-center mb-16">
|
| 132 |
+
<h2 class="text-3xl font-bold text-gray-800">核心开发能力</h2>
|
| 133 |
+
<p class="mt-4 text-gray-600 max-w-2xl mx-auto">
|
| 134 |
+
我们提供三大核心AI能力,覆盖多种应用场景,帮助开发者快速实现智能化升级
|
| 135 |
+
</p>
|
| 136 |
+
</div>
|
| 137 |
+
|
| 138 |
+
<div class="grid md:grid-cols-3 gap-8">
|
| 139 |
+
<!-- 拍照解题 -->
|
| 140 |
+
<div class="bg-white rounded-xl shadow-lg overflow-hidden transition transform hover:-translate-y-2">
|
| 141 |
+
<div class="p-6">
|
| 142 |
+
<div class="w-16 h-16 bg-blue-100 rounded-lg flex items-center justify-center text-primary text-2xl">
|
| 143 |
+
<i class="fas fa-calculator"></i>
|
| 144 |
+
</div>
|
| 145 |
+
<h3 class="mt-4 text-xl font-bold text-gray-800">拍照解题</h3>
|
| 146 |
+
<p class="mt-2 text-gray-600">
|
| 147 |
+
上传题目照片,智能识别并分步解答数学、物理等题目,给出详细解题过程。
|
| 148 |
+
</p>
|
| 149 |
+
</div>
|
| 150 |
+
<div class="px-6 py-4 bg-gray-50">
|
| 151 |
+
<button onclick="openSection('analysis-page')" class="w-full py-3 text-center rounded-lg bg-gradient-to-r from-blue-500 to-primary text-white font-medium hover:opacity-90 transition">
|
| 152 |
+
立即体验
|
| 153 |
+
</button>
|
| 154 |
+
</div>
|
| 155 |
+
</div>
|
| 156 |
+
|
| 157 |
+
<!-- 拍照生成类题 -->
|
| 158 |
+
<div class="bg-white rounded-xl shadow-lg overflow-hidden transition transform hover:-translate-y-2">
|
| 159 |
+
<div class="p-6">
|
| 160 |
+
<div class="w-16 h-16 bg-purple-100 rounded-lg flex items-center justify-center text-accent text-2xl">
|
| 161 |
+
<i class="fas fa-clone"></i>
|
| 162 |
+
</div>
|
| 163 |
+
<h3 class="mt-4 text-xl font-bold text-gray-800">拍照生成类题</h3>
|
| 164 |
+
<p class="mt-2 text-gray-600">
|
| 165 |
+
根据上传题目照片,智能生成相似题目,帮助巩固知识点,提升学习效率。
|
| 166 |
+
</p>
|
| 167 |
+
</div>
|
| 168 |
+
<div class="px-6 py-4 bg-gray-50">
|
| 169 |
+
<button onclick="openSection('generate-page')" class="w-full py-3 text-center rounded-lg bg-gradient-to-r from-purple-500 to-accent text-white font-medium hover:opacity-90 transition">
|
| 170 |
+
立即体验
|
| 171 |
+
</button>
|
| 172 |
+
</div>
|
| 173 |
+
</div>
|
| 174 |
+
|
| 175 |
+
<!-- 手写文字识别 -->
|
| 176 |
+
<div class="bg-white rounded-xl shadow-lg overflow-hidden transition transform hover:-translate-y-2">
|
| 177 |
+
<div class="p-6">
|
| 178 |
+
<div class="w-16 h-16 bg-pink-100 rounded-lg flex items-center justify-center text-highlight text-2xl">
|
| 179 |
+
<i class="fas fa-pen-alt"></i>
|
| 180 |
+
</div>
|
| 181 |
+
<h3 class="mt-4 text-xl font-bold text-gray-800">手写文字识别</h3>
|
| 182 |
+
<p class="mt-2 text-gray-600">
|
| 183 |
+
准确识别手写文字内容,支持多行、复杂公式识别,并能解析坐标位置。
|
| 184 |
+
</p>
|
| 185 |
+
</div>
|
| 186 |
+
<div class="px-6 py-4 bg-gray-50">
|
| 187 |
+
<button onclick="openSection('ocr-page')" class="w-full py-3 text-center rounded-lg bg-gradient-to-r from-pink-500 to-highlight text-white font-medium hover:opacity-90 transition">
|
| 188 |
+
立即体验
|
| 189 |
+
</button>
|
| 190 |
+
</div>
|
| 191 |
+
</div>
|
| 192 |
+
</div>
|
| 193 |
+
</div>
|
| 194 |
+
</section>
|
| 195 |
+
|
| 196 |
+
<!-- 拍照解题体验页面 -->
|
| 197 |
+
<section id="analysis-page" class="py-16 px-4 hidden bg-gray-50">
|
| 198 |
+
<div class="max-w-4xl mx-auto">
|
| 199 |
+
<div class="flex items-center mb-8">
|
| 200 |
+
<button onclick="returnToHome()" class="mr-4 p-2 rounded-full hover:bg-gray-200 transition">
|
| 201 |
+
<i class="fas fa-arrow-left"></i>
|
| 202 |
+
</button>
|
| 203 |
+
<h2 class="text-3xl font-bold text-gray-800">拍照解题</h2>
|
| 204 |
+
</div>
|
| 205 |
+
|
| 206 |
+
<div class="grid md:grid-cols-2 gap-8">
|
| 207 |
+
<div class="bg-white rounded-xl p-6 shadow-md">
|
| 208 |
+
<h3 class="text-xl font-semibold mb-4">功能介绍</h3>
|
| 209 |
+
<p class="text-gray-600 mb-4">
|
| 210 |
+
上传题目照片,AI将自动识别题目内容,并提供详细解题过程和答案分析。
|
| 211 |
+
</p>
|
| 212 |
+
<ul class="text-gray-600 space-y-2 mb-6">
|
| 213 |
+
<li class="flex items-start">
|
| 214 |
+
<i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
|
| 215 |
+
<span>支持数学、物理等多种题型识别</span>
|
| 216 |
+
</li>
|
| 217 |
+
<li class="flex items-start">
|
| 218 |
+
<i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
|
| 219 |
+
<span>提供分步解题过程和关键点分析</span>
|
| 220 |
+
</li>
|
| 221 |
+
<li class="flex items-start">
|
| 222 |
+
<i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
|
| 223 |
+
<span>支持公式渲染与可视化解答</span>
|
| 224 |
+
</li>
|
| 225 |
+
</ul>
|
| 226 |
+
|
| 227 |
+
<div
|
| 228 |
+
id="analysis-upload"
|
| 229 |
+
class="upload-area border-2 border-dashed rounded-xl p-8 text-center cursor-pointer hover:bg-blue-50 transition"
|
| 230 |
+
ondragover="handleDragOver(event)"
|
| 231 |
+
ondragleave="handleDragLeave(event)"
|
| 232 |
+
ondrop="handleDrop(event, 'analysis')"
|
| 233 |
+
>
|
| 234 |
+
<i class="fas fa-cloud-upload-alt text-4xl text-blue-400 mb-3"></i>
|
| 235 |
+
<p class="font-medium text-gray-700 mb-2">点击或拖拽图片至此处上传</p>
|
| 236 |
+
<p class="text-sm text-gray-500">支持JPG、PNG格式,最大5MB</p>
|
| 237 |
+
<input
|
| 238 |
+
type="file"
|
| 239 |
+
id="analysis-file"
|
| 240 |
+
class="hidden"
|
| 241 |
+
accept="image/*"
|
| 242 |
+
onchange="handleImageUpload(event, 'analysis')"
|
| 243 |
+
>
|
| 244 |
+
</div>
|
| 245 |
+
<div class="mt-4">
|
| 246 |
+
<button
|
| 247 |
+
onclick="processImage('analysis')"
|
| 248 |
+
id="analysis-btn"
|
| 249 |
+
class="w-full py-3 rounded-lg bg-gradient-to-r from-blue-500 to-primary text-white font-medium hover:opacity-90 transition disabled:opacity-50"
|
| 250 |
+
disabled
|
| 251 |
+
>
|
| 252 |
+
分析题目
|
| 253 |
+
</button>
|
| 254 |
+
</div>
|
| 255 |
+
</div>
|
| 256 |
+
|
| 257 |
+
<div class="bg-white rounded-xl p-6 shadow-md">
|
| 258 |
+
<h3 class="text-xl font-semibold mb-4">分析结果</h3>
|
| 259 |
+
<div class="mb-4">
|
| 260 |
+
<img id="analysis-preview" class="max-w-full rounded-lg border hidden">
|
| 261 |
+
</div>
|
| 262 |
+
<div id="analysis-loading" class="hidden flex items-center justify-center">
|
| 263 |
+
<div class="lds-ripple"><div></div><div></div></div>
|
| 264 |
+
</div>
|
| 265 |
+
<div id="analysis-result" class="result-container bg-gray-100 rounded-lg p-4 overflow-auto max-h-96"></div>
|
| 266 |
+
</div>
|
| 267 |
+
</div>
|
| 268 |
+
</div>
|
| 269 |
+
</section>
|
| 270 |
+
|
| 271 |
+
<!-- 拍照生成类题体验页面 -->
|
| 272 |
+
<section id="generate-page" class="py-16 px-4 hidden bg-gray-50">
|
| 273 |
+
<div class="max-w-4xl mx-auto">
|
| 274 |
+
<div class="flex items-center mb-8">
|
| 275 |
+
<button onclick="returnToHome()" class="mr-4 p-2 rounded-full hover:bg-gray-200 transition">
|
| 276 |
+
<i class="fas fa-arrow-left"></i>
|
| 277 |
+
</button>
|
| 278 |
+
<h2 class="text-3xl font-bold text-gray-800">拍照生成类题</h2>
|
| 279 |
+
</div>
|
| 280 |
+
|
| 281 |
+
<div class="grid md:grid-cols-2 gap-8">
|
| 282 |
+
<div class="bg-white rounded-xl p-6 shadow-md">
|
| 283 |
+
<h3 class="text-xl font-semibold mb-4">功能介绍</h3>
|
| 284 |
+
<p class="text-gray-600 mb-4">
|
| 285 |
+
上传题目照片,AI将生成类似题目及答案,帮助用户巩固知识点和提升解题能力。
|
| 286 |
+
</p>
|
| 287 |
+
<ul class="text-gray-600 space-y-2 mb-6">
|
| 288 |
+
<li class="flex items-start">
|
| 289 |
+
<i class="fas fa-check-circle text-purple-500 mt-1 mr-2"></i>
|
| 290 |
+
<span>智能生成同类型题目及答案</span>
|
| 291 |
+
</li>
|
| 292 |
+
<li class="flex items-start">
|
| 293 |
+
<i class="fas fa-check-circle text-purple-500 mt-1 mr-2"></i>
|
| 294 |
+
<span>提供详细答案解析及知识点</span>
|
| 295 |
+
</li>
|
| 296 |
+
<li class="flex items-start">
|
| 297 |
+
<i class="fas fa-check-circle text-purple-500 mt-1 mr-2"></i>
|
| 298 |
+
<span>支持多种学科和题型</span>
|
| 299 |
+
</li>
|
| 300 |
+
</ul>
|
| 301 |
+
|
| 302 |
+
<div
|
| 303 |
+
id="generate-upload"
|
| 304 |
+
class="upload-area border-2 border-dashed rounded-xl p-8 text-center cursor-pointer hover:bg-purple-50 transition"
|
| 305 |
+
ondragover="handleDragOver(event)"
|
| 306 |
+
ondragleave="handleDragLeave(event)"
|
| 307 |
+
ondrop="handleDrop(event, 'generate')"
|
| 308 |
+
>
|
| 309 |
+
<i class="fas fa-cloud-upload-alt text-4xl text-purple-400 mb-3"></i>
|
| 310 |
+
<p class="font-medium text-gray-700 mb-2">点击或拖拽图片至此处上传</p>
|
| 311 |
+
<p class="text-sm text-gray-500">支持JPG、PNG格式,最大5MB</p>
|
| 312 |
+
<input
|
| 313 |
+
type="file"
|
| 314 |
+
id="generate-file"
|
| 315 |
+
class="hidden"
|
| 316 |
+
accept="image/*"
|
| 317 |
+
onchange="handleImageUpload(event, 'generate')"
|
| 318 |
+
>
|
| 319 |
+
</div>
|
| 320 |
+
<div class="mt-4">
|
| 321 |
+
<button
|
| 322 |
+
onclick="processImage('generate')"
|
| 323 |
+
id="generate-btn"
|
| 324 |
+
class="w-full py-3 rounded-lg bg-gradient-to-r from-purple-500 to-accent text-white font-medium hover:opacity-90 transition disabled:opacity-50"
|
| 325 |
+
disabled
|
| 326 |
+
>
|
| 327 |
+
生成类题
|
| 328 |
+
</button>
|
| 329 |
+
</div>
|
| 330 |
+
</div>
|
| 331 |
+
|
| 332 |
+
<div class="bg-white rounded-xl p-6 shadow-md">
|
| 333 |
+
<h3 class="text-xl font-semibold mb-4">生成结果</h3>
|
| 334 |
+
<div class="mb-4">
|
| 335 |
+
<img id="generate-preview" class="max-w-full rounded-lg border hidden">
|
| 336 |
+
</div>
|
| 337 |
+
<div id="generate-loading" class="hidden flex items-center justify-center">
|
| 338 |
+
<div class="lds-ripple"><div></div><div></div></div>
|
| 339 |
+
</div>
|
| 340 |
+
<div id="generate-result" class="result-container bg-gray-100 rounded-lg p-4 overflow-auto max-h-96"></div>
|
| 341 |
+
</div>
|
| 342 |
+
</div>
|
| 343 |
+
</div>
|
| 344 |
+
</section>
|
| 345 |
+
|
| 346 |
+
<!-- 手写文字识别体验页面 -->
|
| 347 |
+
<section id="ocr-page" class="py-16 px-4 hidden bg-gray-50">
|
| 348 |
+
<div class="max-w-4xl mx-auto">
|
| 349 |
+
<div class="flex items-center mb-8">
|
| 350 |
+
<button onclick="returnToHome()" class="mr-4 p-2 rounded-full hover:bg-gray-200 transition">
|
| 351 |
+
<i class="fas fa-arrow-left"></i>
|
| 352 |
+
</button>
|
| 353 |
+
<h2 class="text-3xl font-bold text-gray-800">手写文字识别</h2>
|
| 354 |
+
</div>
|
| 355 |
+
|
| 356 |
+
<div class="grid md:grid-cols-2 gap-8">
|
| 357 |
+
<div class="bg-white rounded-xl p-6 shadow-md">
|
| 358 |
+
<h3 class="text-xl font-semibold mb-4">功能介绍</h3>
|
| 359 |
+
<p class="text-gray-600 mb-4">
|
| 360 |
+
上传手写内容照片,AI将准确识别手写文字内容,并能识别公式并提供坐标位置。
|
| 361 |
+
</p>
|
| 362 |
+
<ul class="text-gray-600 space-y-2 mb-6">
|
| 363 |
+
<li class="flex items-start">
|
| 364 |
+
<i class="fas fa-check-circle text-pink-500 mt-1 mr-2"></i>
|
| 365 |
+
<span>支持手写文字、公式识别</span>
|
| 366 |
+
</li>
|
| 367 |
+
<li class="flex items-start">
|
| 368 |
+
<i class="fas fa-check-circle text-pink-500 mt-1 mr-2"></i>
|
| 369 |
+
<span>提供识别位置坐标和置信度</span>
|
| 370 |
+
</li>
|
| 371 |
+
<li class="flex items-start">
|
| 372 |
+
<i class="fas fa-check-circle text-pink-500 mt-1 mr-2"></i>
|
| 373 |
+
<span>支持多行手写文本识别</span>
|
| 374 |
+
</li>
|
| 375 |
+
</ul>
|
| 376 |
+
|
| 377 |
+
<div
|
| 378 |
+
id="ocr-upload"
|
| 379 |
+
class="upload-area border-2 border-dashed rounded-xl p-8 text-center cursor-pointer hover:bg-pink-50 transition"
|
| 380 |
+
ondragover="handleDragOver(event)"
|
| 381 |
+
ondragleave="handleDragLeave(event)"
|
| 382 |
+
ondrop="handleDrop(event, 'ocr')"
|
| 383 |
+
>
|
| 384 |
+
<i class="fas fa-cloud-upload-alt text-4xl text-pink-400 mb-3"></i>
|
| 385 |
+
<p class="font-medium text-gray-700 mb-2">点击或拖拽图片至此处上传</p>
|
| 386 |
+
<p class="text-sm text-gray-500">支持JPG、PNG格式,最大5MB</p>
|
| 387 |
+
<input
|
| 388 |
+
type="file"
|
| 389 |
+
id="ocr-file"
|
| 390 |
+
class="hidden"
|
| 391 |
+
accept="image/*"
|
| 392 |
+
onchange="handleImageUpload(event, 'ocr')"
|
| 393 |
+
>
|
| 394 |
+
</div>
|
| 395 |
+
<div class="mt-4">
|
| 396 |
+
<button
|
| 397 |
+
onclick="processImage('ocr')"
|
| 398 |
+
id="ocr-btn"
|
| 399 |
+
class="w-full py-3 rounded-lg bg-gradient-to-r from-pink-500 to-highlight text-white font-medium hover:opacity-90 transition disabled:opacity-50"
|
| 400 |
+
disabled
|
| 401 |
+
>
|
| 402 |
+
识别文字
|
| 403 |
+
</button>
|
| 404 |
+
</div>
|
| 405 |
+
</div>
|
| 406 |
+
|
| 407 |
+
<div class="bg-white rounded-xl p-6 shadow-md">
|
| 408 |
+
<h3 class="text-xl font-semibold mb-4">识别结果</h3>
|
| 409 |
+
<div class="mb-4">
|
| 410 |
+
<img id="ocr-preview" class="max-w-full rounded-lg border hidden">
|
| 411 |
+
</div>
|
| 412 |
+
<div id="ocr-loading" class="hidden flex items-center justify-center">
|
| 413 |
+
<div class="lds-ripple"><div></div><div></div></div>
|
| 414 |
+
</div>
|
| 415 |
+
<div id="ocr-result" class="result-container bg-gray-100 rounded-lg p-4 overflow-auto max-h-96"></div>
|
| 416 |
+
</div>
|
| 417 |
+
</div>
|
| 418 |
+
</div>
|
| 419 |
+
</section>
|
| 420 |
+
|
| 421 |
+
<!-- 页脚 -->
|
| 422 |
+
<footer class="bg-gray-800 text-white py-12 px-4">
|
| 423 |
+
<div class="max-w-7xl mx-auto">
|
| 424 |
+
<div class="grid md:grid-cols-4 gap-8">
|
| 425 |
+
<div>
|
| 426 |
+
<h3 class="text-xl font-bold mb-4">智能AI开发平台</h3>
|
| 427 |
+
<p class="text-gray-400">赋能开发者的人工智能平台,提供先进AI能力,助力创新应用开发</p>
|
| 428 |
+
<div class="flex space-x-4 mt-6">
|
| 429 |
+
<a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-weixin text-xl"></i></a>
|
| 430 |
+
<a href="#" class="text-gray-400 hover:text-white
|
| 431 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=wunianSky/test" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 432 |
+
</html>
|