Spaces:
Build error
Build error
clementsan commited on
Commit ·
09444af
1
Parent(s): 00bd139
Comment print commands used for debugging and quality control
Browse files125 unmodified lines1261271281291291301311326 unmodified lines139140141142142143144144145146147125 unmodified lines # Create list of documents (when valid) #file_path = file_obj.name list_file_path = [x.name for x in list_file_obj if x is not None] print('list_file_path', list_file_path) # print('list_file_path', list_file_path) progress(0.25, desc="Loading document...") # Load document and create splits doc_splits = load_doc(list_file_path, chunk_size, chunk_overlap)6 unmodified lines
def initialize_LLM(llm_option, llm_temperature, max_tokens, top_k, vector_db, progress=gr.Progress()): print("llm_option",llm_option) # print("llm_option",llm_option) llm_name = list_llm[llm_option] print("llm_name",llm_name) # print("llm_name",llm_name) qa_chain = initialize_llmchain(llm_name, llm_temperature, max_tokens, top_k, vector_db, progress) return qa_chain, "Complete!"
app.py+3-3