artistypl commited on
Commit
e8c565f
·
1 Parent(s): 51abe5c

Update app.py

Browse files

fix bug:增加HISTORY_LEN

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -142,13 +142,13 @@ def predict(input,
142
  embedding_model,
143
  file_obj,
144
  VECTOR_SEARCH_TOP_K,
 
145
  temperature,
146
  top_p,
147
  use_web,
148
  history=None):
149
  if history == None:
150
  history = []
151
- print(file_obj.name)
152
  vector_store = init_knowledge_vector_store(embedding_model, file_obj.name)
153
  if use_web == 'True':
154
  web_content = search_web(query=input)
 
142
  embedding_model,
143
  file_obj,
144
  VECTOR_SEARCH_TOP_K,
145
+ HISTORY_LEN,
146
  temperature,
147
  top_p,
148
  use_web,
149
  history=None):
150
  if history == None:
151
  history = []
 
152
  vector_store = init_knowledge_vector_store(embedding_model, file_obj.name)
153
  if use_web == 'True':
154
  web_content = search_web(query=input)