zhichyu Kevin Hu commited on
Commit
caf7eaa
·
1 Parent(s): 739dd81

Fix LIGHTEN. Close #2723 (#2744)

Browse files

### What problem does this PR solve?

Fix LIGHTEN
#2726
#2723

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
- [ ] New Feature (non-breaking change which adds functionality)
- [ ] Documentation Update
- [ ] Refactoring
- [ ] Performance Improvement
- [ ] Other (please describe):

---------

Co-authored-by: Kevin Hu <[email protected]>

Files changed (1) hide show
  1. api/settings.py +1 -1
api/settings.py CHANGED
@@ -42,7 +42,7 @@ RAG_FLOW_SERVICE_NAME = "ragflow"
42
  SERVER_MODULE = "rag_flow_server.py"
43
  TEMP_DIRECTORY = os.path.join(get_project_base_directory(), "temp")
44
  RAG_FLOW_CONF_PATH = os.path.join(get_project_base_directory(), "conf")
45
- LIGHTEN = os.environ.get('LIGHTEN')
46
 
47
  SUBPROCESS_STD_LOG_NAME = "std.log"
48
 
 
42
  SERVER_MODULE = "rag_flow_server.py"
43
  TEMP_DIRECTORY = os.path.join(get_project_base_directory(), "temp")
44
  RAG_FLOW_CONF_PATH = os.path.join(get_project_base_directory(), "conf")
45
+ LIGHTEN = int(os.environ.get('LIGHTEN', "0"))
46
 
47
  SUBPROCESS_STD_LOG_NAME = "std.log"
48