ryan0303 commited on
Commit
71c698f
1 Parent(s): 2b3a131

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -240,9 +240,8 @@ def initialize_database(list_file_obj, chunk_size, chunk_overlap, progress=gr.Pr
240
  def initialize_LLM(llm_option, prompt_template, llm_temperature, max_tokens, top_k, vector_db, progress=gr.Progress()):
241
  # print("llm_option",llm_option)
242
  llm_name = list_llm[llm_option]
243
- prompt = prompt_template
244
  print("llm_name: ",llm_name)
245
- qa_chain = initialize_llmchain(llm_name, prompt, llm_temperature, max_tokens, top_k, vector_db, progress)
246
  return qa_chain, "Complete!"
247
 
248
 
 
240
  def initialize_LLM(llm_option, prompt_template, llm_temperature, max_tokens, top_k, vector_db, progress=gr.Progress()):
241
  # print("llm_option",llm_option)
242
  llm_name = list_llm[llm_option]
 
243
  print("llm_name: ",llm_name)
244
+ qa_chain = initialize_llmchain(llm_name, llm_temperature, max_tokens, top_k, vector_db, progress)
245
  return qa_chain, "Complete!"
246
 
247