Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
LAE
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
文靖昊
LAE
Commits
e78c7fe2
Commit
e78c7fe2
authored
Jun 13, 2024
by
陈正乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
知识库新增内容
parent
ce1888e2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
3 deletions
+3
-3
know.faiss
faiss/know/know.faiss
+0
-0
know.pkl
faiss/know/know.pkl
+0
-0
insert_data.sql
init_db/insert_data.sql
+0
-0
gradio_app.py
src/gradio_app.py
+2
-2
k_store_test.py
test/k_store_test.py
+1
-1
No files found.
faiss/know/know.faiss
View file @
e78c7fe2
No preview for this file type
faiss/know/know.pkl
View file @
e78c7fe2
No preview for this file type
init_db/insert_data.sql
View file @
e78c7fe2
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/gradio_app.py
View file @
e78c7fe2
...
...
@@ -126,7 +126,7 @@ def main():
return
history
def
clear_tip
(
his
):
if
not
his
[
0
][
0
]
and
his
[
0
][
1
]
==
"你好,我是新晨科技股份的人工智能助手小晨,如果您有低空经济相关问题,欢迎随时向我咨询。"
:
if
not
his
[
0
][
0
]
and
his
[
0
][
1
]
==
"你好,我是新晨科技股份的
低空经济
人工智能助手小晨,如果您有低空经济相关问题,欢迎随时向我咨询。"
:
return
his
[
1
:]
else
:
return
his
...
...
@@ -144,7 +144,7 @@ def main():
chatbot
=
gr
.
Chatbot
(
bubble_full_width
=
False
,
avatar_images
=
(
ICON_PATH
+
'
\\
user2.png'
,
ICON_PATH
+
"
\\
bot2.png"
),
value
=
[[
None
,
"
我是新晨科技股份有限公司开发的人工智能助手,名叫小晨,如果您有任何问题,欢迎随时向我咨询
"
]],
"
你好,我是新晨科技股份的低空经济人工智能助手小晨,如果您有低空经济相关问题,欢迎随时向我咨询。
"
]],
height
=
400
,
show_copy_button
=
True
,
show_label
=
False
,
line_breaks
=
True
)
with
gr
.
Row
():
...
...
test/k_store_test.py
View file @
e78c7fe2
...
...
@@ -82,5 +82,5 @@ def test_faiss_load():
if
__name__
==
"__main__"
:
#
test_faiss_from_dir()
test_faiss_from_dir
()
test_faiss_load
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment