Spaces:
Running
Running
clementsan
commited on
Commit
•
09444af
1
Parent(s):
00bd139
Comment print commands used for debugging and quality control
Browse files
app.py
CHANGED
@@ -126,7 +126,7 @@ def initialize_database(list_file_obj, chunk_size, chunk_overlap, progress=gr.Pr
|
|
126 |
# Create list of documents (when valid)
|
127 |
#file_path = file_obj.name
|
128 |
list_file_path = [x.name for x in list_file_obj if x is not None]
|
129 |
-
print('list_file_path', list_file_path)
|
130 |
progress(0.25, desc="Loading document...")
|
131 |
# Load document and create splits
|
132 |
doc_splits = load_doc(list_file_path, chunk_size, chunk_overlap)
|
@@ -139,9 +139,9 @@ def initialize_database(list_file_obj, chunk_size, chunk_overlap, progress=gr.Pr
|
|
139 |
|
140 |
|
141 |
def initialize_LLM(llm_option, llm_temperature, max_tokens, top_k, vector_db, progress=gr.Progress()):
|
142 |
-
print("llm_option",llm_option)
|
143 |
llm_name = list_llm[llm_option]
|
144 |
-
print("llm_name",llm_name)
|
145 |
qa_chain = initialize_llmchain(llm_name, llm_temperature, max_tokens, top_k, vector_db, progress)
|
146 |
return qa_chain, "Complete!"
|
147 |
|
|
|
126 |
# Create list of documents (when valid)
|
127 |
#file_path = file_obj.name
|
128 |
list_file_path = [x.name for x in list_file_obj if x is not None]
|
129 |
+
# print('list_file_path', list_file_path)
|
130 |
progress(0.25, desc="Loading document...")
|
131 |
# Load document and create splits
|
132 |
doc_splits = load_doc(list_file_path, chunk_size, chunk_overlap)
|
|
|
139 |
|
140 |
|
141 |
def initialize_LLM(llm_option, llm_temperature, max_tokens, top_k, vector_db, progress=gr.Progress()):
|
142 |
+
# print("llm_option",llm_option)
|
143 |
llm_name = list_llm[llm_option]
|
144 |
+
# print("llm_name",llm_name)
|
145 |
qa_chain = initialize_llmchain(llm_name, llm_temperature, max_tokens, top_k, vector_db, progress)
|
146 |
return qa_chain, "Complete!"
|
147 |
|