Spaces:
Sleeping
Sleeping
chenzerong
commited on
Commit
·
9e42895
1
Parent(s):
35b7d71
change some tips
Browse files- flask_app.py +1 -1
- templates/index.html +3 -3
flask_app.py
CHANGED
@@ -42,7 +42,7 @@ def chat():
|
|
42 |
# 添加默认的系统提示
|
43 |
history.insert(0, {
|
44 |
"role": "system",
|
45 |
-
"content": "你是一个AI
|
46 |
})
|
47 |
|
48 |
try:
|
|
|
42 |
# 添加默认的系统提示
|
43 |
history.insert(0, {
|
44 |
"role": "system",
|
45 |
+
"content": "你是一个AI度量专家助手。你可以分析文本和图像的内容。能根据用户的需求,给出度量建议和洞察"
|
46 |
})
|
47 |
|
48 |
try:
|
templates/index.html
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
-
<title>
|
7 |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
8 |
<style>
|
9 |
body {
|
@@ -179,7 +179,7 @@
|
|
179 |
</head>
|
180 |
<body>
|
181 |
<div class="container">
|
182 |
-
<h1 class="mb-4">
|
183 |
|
184 |
<div class="chat-container">
|
185 |
<div class="chat-box">
|
@@ -204,7 +204,7 @@
|
|
204 |
<div class="sidebar" style="width: 300px;">
|
205 |
<h5>设置</h5>
|
206 |
<label for="system-prompt">系统提示</label>
|
207 |
-
<textarea id="system-prompt" class="system-prompt">你是一个AI
|
208 |
|
209 |
<button class="clear-button" onclick="clearChat()">清除聊天记录</button>
|
210 |
|
|
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Agilean度量AI助手</title>
|
7 |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
8 |
<style>
|
9 |
body {
|
|
|
179 |
</head>
|
180 |
<body>
|
181 |
<div class="container">
|
182 |
+
<h1 class="mb-4">Agilean度量AI助手</h1>
|
183 |
|
184 |
<div class="chat-container">
|
185 |
<div class="chat-box">
|
|
|
204 |
<div class="sidebar" style="width: 300px;">
|
205 |
<h5>设置</h5>
|
206 |
<label for="system-prompt">系统提示</label>
|
207 |
+
<textarea id="system-prompt" class="system-prompt">你是一个AI度量专家助手。你可以分析文本和图像的内容。能根据用户的需求给出度量建议和洞察</textarea>
|
208 |
|
209 |
<button class="clear-button" onclick="clearChat()">清除聊天记录</button>
|
210 |
|