Spaces:
Running
Running
Junhui Ji
commited on
Commit
·
1812d0c
1
Parent(s):
cbb2661
Changes to be committed:
Browse filesnew file: .DS_Store
new file: .idea/.gitignore
modified: README.md
modified: static/feedback.html
modified: static/script.js
modified: static/upload.html
- .DS_Store +0 -0
- .idea/.gitignore +8 -0
- README.md +2 -2
- static/feedback.html +3 -3
- static/script.js +7 -7
- static/upload.html +1 -1
.DS_Store
ADDED
Binary file (6.15 kB). View file
|
|
.idea/.gitignore
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# 默认忽略的文件
|
2 |
+
/shelf/
|
3 |
+
/workspace.xml
|
4 |
+
# 基于编辑器的 HTTP 客户端请求
|
5 |
+
/httpRequests/
|
6 |
+
# Datasource local storage ignored files
|
7 |
+
/dataSources/
|
8 |
+
/dataSources.local.xml
|
README.md
CHANGED
@@ -10,7 +10,7 @@ app_port: 7860
|
|
10 |
|
11 |
# Boss Translator (解语花)
|
12 |
|
13 |
-
An AI-powered design feedback analysis and optimization platform that helps designers understand and respond to client
|
14 |
|
15 |
## Features
|
16 |
|
@@ -38,7 +38,7 @@ An AI-powered design feedback analysis and optimization platform that helps desi
|
|
38 |
|
39 |
# 解语花 (Boss Translator)
|
40 |
|
41 |
-
一个AI
|
42 |
|
43 |
## 功能特点
|
44 |
|
|
|
10 |
|
11 |
# Boss Translator (解语花)
|
12 |
|
13 |
+
An AI-powered design feedback analysis and optimization platform that helps designers understand and respond to client feedback professionally.
|
14 |
|
15 |
## Features
|
16 |
|
|
|
38 |
|
39 |
# 解语花 (Boss Translator)
|
40 |
|
41 |
+
一个AI驱动的设计反馈分析与优化平台,帮助设计师专业地理解和回应需求方的反馈。
|
42 |
|
43 |
## 功能特点
|
44 |
|
static/feedback.html
CHANGED
@@ -21,7 +21,7 @@
|
|
21 |
<span class="emoji">😠</span>
|
22 |
<span class="emoji">😠</span>
|
23 |
</div>
|
24 |
-
<div class="emotion-text"
|
25 |
</div>
|
26 |
</section>
|
27 |
|
@@ -81,7 +81,7 @@
|
|
81 |
</div>
|
82 |
<div class="optimization-content" id="gpt4-content">
|
83 |
<div class="optimization-placeholder">
|
84 |
-
<p>基于GPT-4o
|
85 |
</div>
|
86 |
</div>
|
87 |
</div>
|
@@ -103,7 +103,7 @@
|
|
103 |
<section class="feedback-section">
|
104 |
<h2 class="section-title">润色</h2>
|
105 |
<div class="polished-card">
|
106 |
-
<textarea placeholder="
|
107 |
</div>
|
108 |
|
109 |
<!-- 生成后的文案框,初始隐藏 -->
|
|
|
21 |
<span class="emoji">😠</span>
|
22 |
<span class="emoji">😠</span>
|
23 |
</div>
|
24 |
+
<div class="emotion-text">需求方对设计非常不满意,建议全面改进</div>
|
25 |
</div>
|
26 |
</section>
|
27 |
|
|
|
81 |
</div>
|
82 |
<div class="optimization-content" id="gpt4-content">
|
83 |
<div class="optimization-placeholder">
|
84 |
+
<p>基于GPT-4o的智能优化,结合需求方反馈进行针对性修改</p>
|
85 |
</div>
|
86 |
</div>
|
87 |
</div>
|
|
|
103 |
<section class="feedback-section">
|
104 |
<h2 class="section-title">润色</h2>
|
105 |
<div class="polished-card">
|
106 |
+
<textarea placeholder="输入你要回复需求方的话" id="userInput"></textarea>
|
107 |
</div>
|
108 |
|
109 |
<!-- 生成后的文案框,初始隐藏 -->
|
static/script.js
CHANGED
@@ -162,7 +162,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
162 |
const text = textInput.value.trim();
|
163 |
// 检查是否有文本输入
|
164 |
if (text === '') {
|
165 |
-
alert('
|
166 |
return;
|
167 |
}
|
168 |
|
@@ -171,7 +171,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
171 |
|
172 |
// 有趣的加载文案
|
173 |
const loadingTexts = [
|
174 |
-
"
|
175 |
"监控到大象对话框散发红光!自动生成24K纯杠精防护罩..."
|
176 |
];
|
177 |
|
@@ -405,15 +405,15 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
405 |
} else {
|
406 |
// 如果没有情绪分析部分,根据emoji生成默认文本
|
407 |
if (emojis && emojis[0] === '😠') {
|
408 |
-
textDescription = '
|
409 |
} else if (emojis && emojis[0] === '🙁') {
|
410 |
-
textDescription = '
|
411 |
} else if (emojis && emojis[0] === '😐') {
|
412 |
-
textDescription = '
|
413 |
} else if (emojis && emojis[0] === '🙂') {
|
414 |
-
textDescription = '
|
415 |
} else if (emojis && emojis[0] === '😊') {
|
416 |
-
textDescription = '
|
417 |
} else {
|
418 |
textDescription = '需要基于反馈进行改进';
|
419 |
}
|
|
|
162 |
const text = textInput.value.trim();
|
163 |
// 检查是否有文本输入
|
164 |
if (text === '') {
|
165 |
+
alert('请输入需求方反馈内容');
|
166 |
return;
|
167 |
}
|
168 |
|
|
|
171 |
|
172 |
// 有趣的加载文案
|
173 |
const loadingTexts = [
|
174 |
+
"检测到需求方第8版需求残留怨气...正在召唤阴阳师修改图层结界",
|
175 |
"监控到大象对话框散发红光!自动生成24K纯杠精防护罩..."
|
176 |
];
|
177 |
|
|
|
405 |
} else {
|
406 |
// 如果没有情绪分析部分,根据emoji生成默认文本
|
407 |
if (emojis && emojis[0] === '😠') {
|
408 |
+
textDescription = '需求方对设计非常不满意,建议全面改进';
|
409 |
} else if (emojis && emojis[0] === '🙁') {
|
410 |
+
textDescription = '需求方对设计不太满意,需要较多改进';
|
411 |
} else if (emojis && emojis[0] === '😐') {
|
412 |
+
textDescription = '需求方对设计感觉一般,有改进空间';
|
413 |
} else if (emojis && emojis[0] === '🙂') {
|
414 |
+
textDescription = '需求方对设计比较满意,小幅改进即可';
|
415 |
} else if (emojis && emojis[0] === '😊') {
|
416 |
+
textDescription = '需求方对设计非常满意,细节优化即可';
|
417 |
} else {
|
418 |
textDescription = '需要基于反馈进行改进';
|
419 |
}
|
static/upload.html
CHANGED
@@ -21,7 +21,7 @@
|
|
21 |
</div>
|
22 |
|
23 |
<div class="text-input-box">
|
24 |
-
<textarea id="text-input" placeholder="
|
25 |
</div>
|
26 |
|
27 |
<div class="button-container">
|
|
|
21 |
</div>
|
22 |
|
23 |
<div class="text-input-box">
|
24 |
+
<textarea id="text-input" placeholder="请输入设计类型和内容描述,以及需求方反馈"></textarea>
|
25 |
</div>
|
26 |
|
27 |
<div class="button-container">
|