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
d481a5c5
Commit
d481a5c5
authored
Jun 19, 2023
by
jyong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/dataset-init' into deploy/dev
parents
380f25bb
dd09ff8a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
README.md
api/README.md
+5
-0
dataset_service.py
api/services/dataset_service.py
+1
-1
markdown.scss
web/app/styles/markdown.scss
+2
-2
No files found.
api/README.md
View file @
d481a5c5
...
...
@@ -17,6 +17,11 @@
```bash
openssl rand -base64 42
```
3.
5 If you use annaconda, create a new environment and activate it
```bash
conda create --name dify python=3.10
conda activate dify
```
4.
Install dependencies
```bash
pip install -r requirements.txt
...
...
api/services/dataset_service.py
View file @
d481a5c5
...
...
@@ -78,7 +78,7 @@ class DatasetService:
raise
DatasetNameDuplicateError
(
f
'Dataset with name {name} already exists.'
)
dataset
=
Dataset
(
name
=
name
,
indexing_technique
=
indexing_technique
,
data_source_type
=
'upload_file'
)
dataset
=
Dataset
(
name
=
name
,
indexing_technique
=
indexing_technique
)
# dataset = Dataset(name=name, provider=provider, config=config)
dataset
.
created_by
=
account
.
id
dataset
.
updated_by
=
account
.
id
...
...
web/app/styles/markdown.scss
View file @
d481a5c5
...
...
@@ -54,7 +54,7 @@
font-weight
:
400
;
line-height
:
1
.5
;
word-wrap
:
break-word
;
word-break
:
break-
all
;
word-break
:
break-
word
;
user-select
:
text
;
}
...
...
@@ -1042,4 +1042,4 @@
.
markdown-body
:
:-
webkit-calendar-picker-indicator
{
filter
:
invert
(
50%
);
}
\ No newline at end of file
}
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