Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
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
ai-tech
dify
Commits
ce9cb603
Commit
ce9cb603
authored
Jul 10, 2023
by
StyleZhang
Browse files
Options
Browse Files
Download
Plain Diff
resolve conflict
parents
1c40ccc8
dbcf42a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
clean_dataset_task.py
api/tasks/clean_dataset_task.py
+2
-2
index.tsx
web/app/components/base/voice-input/index.tsx
+4
-1
No files found.
api/tasks/clean_dataset_task.py
View file @
ce9cb603
...
...
@@ -7,7 +7,7 @@ from celery import shared_task
from
core.index.index
import
IndexBuilder
from
extensions.ext_database
import
db
from
models.dataset
import
DocumentSegment
,
Dataset
,
DatasetKeywordTable
,
DatasetQuery
,
DatasetProcessRule
,
\
AppDatasetJoin
AppDatasetJoin
,
Document
@
shared_task
...
...
@@ -32,7 +32,7 @@ def clean_dataset_task(dataset_id: str, tenant_id: str, indexing_technique: str,
index_struct
=
index_struct
)
documents
=
db
.
session
.
query
(
Document
Segment
)
.
filter
(
DocumentSeg
ment
.
dataset_id
==
dataset_id
)
.
all
()
documents
=
db
.
session
.
query
(
Document
)
.
filter
(
Docu
ment
.
dataset_id
==
dataset_id
)
.
all
()
segments
=
db
.
session
.
query
(
DocumentSegment
)
.
filter
(
DocumentSegment
.
dataset_id
==
dataset_id
)
.
all
()
vector_index
=
IndexBuilder
.
get_index
(
dataset
,
'high_quality'
)
...
...
web/app/components/base/voice-input/index.tsx
View file @
ce9cb603
...
...
@@ -56,7 +56,10 @@ const VoiceInput = ({
const
y
=
(
v
-
128
)
/
50
*
canvas
.
height
ctx
.
moveTo
(
x
,
16
)
ctx
.
roundRect
(
x
,
16
-
y
,
2
,
y
,
[
1
,
1
,
0
,
0
])
if
(
ctx
.
roundRect
)
ctx
.
roundRect
(
x
,
16
-
y
,
2
,
y
,
[
1
,
1
,
0
,
0
])
else
ctx
.
rect
(
x
,
16
-
y
,
2
,
y
)
ctx
.
fill
()
x
+=
3
}
...
...
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