Kevin Hu commited on
Commit
1500cac
·
1 Parent(s): 5bf0b15

trival (#2808)

Browse files

### What problem does this PR solve?



### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

Files changed (2) hide show
  1. api/apps/llm_app.py +1 -1
  2. rag/nlp/__init__.py +1 -0
api/apps/llm_app.py CHANGED
@@ -332,7 +332,7 @@ def my_llms():
332
  @login_required
333
  def list_app():
334
  self_deploied = ["Youdao","FastEmbed", "BAAI", "Ollama", "Xinference", "LocalAI", "LM-Studio"]
335
- weighted = ["Youdao","FastEmbed", "BAAI"] if not LIGHTEN else []
336
  model_type = request.args.get("model_type")
337
  try:
338
  objs = TenantLLMService.query(tenant_id=current_user.id)
 
332
  @login_required
333
  def list_app():
334
  self_deploied = ["Youdao","FastEmbed", "BAAI", "Ollama", "Xinference", "LocalAI", "LM-Studio"]
335
+ weighted = ["Youdao","FastEmbed", "BAAI"] if LIGHTEN != 0 else []
336
  model_type = request.args.get("model_type")
337
  try:
338
  objs = TenantLLMService.query(tenant_id=current_user.id)
rag/nlp/__init__.py CHANGED
@@ -151,6 +151,7 @@ def qbullets_category(sections):
151
  maxium = h
152
  return res, QUESTION_PATTERN[res]
153
 
 
154
  BULLET_PATTERN = [[
155
  r"第[零一二三四五六七八九十百0-9]+(分?编|部分)",
156
  r"第[零一二三四五六七八九十百0-9]+章",
 
151
  maxium = h
152
  return res, QUESTION_PATTERN[res]
153
 
154
+
155
  BULLET_PATTERN = [[
156
  r"第[零一二三四五六七八九十百0-9]+(分?编|部分)",
157
  r"第[零一二三四五六七八九十百0-9]+章",