Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -273,7 +273,7 @@ def upload_file(file_obj):
|
|
273 |
for idx, file in enumerate(file_obj):
|
274 |
file_path = file_obj.name
|
275 |
list_file_path.append(file_path)
|
276 |
-
|
277 |
# initialize_database(file_path, progress)
|
278 |
return list_file_path
|
279 |
|
@@ -354,8 +354,8 @@ def demo():
|
|
354 |
db_btn.click(initialize_database, \
|
355 |
inputs=[document, slider_chunk_size, slider_chunk_overlap], \
|
356 |
outputs=[vector_db, collection_name, db_progress])
|
357 |
-
print(
|
358 |
-
print(
|
359 |
qachain_btn.click(initialize_LLM, \
|
360 |
inputs=[llm_btn, slider_temperature, slider_maxtokens, slider_topk, vector_db], \
|
361 |
outputs=[qa_chain, llm_progress]).then(lambda:[None,"",0,"",0,"",0], \
|
|
|
273 |
for idx, file in enumerate(file_obj):
|
274 |
file_path = file_obj.name
|
275 |
list_file_path.append(file_path)
|
276 |
+
print(file_path)
|
277 |
# initialize_database(file_path, progress)
|
278 |
return list_file_path
|
279 |
|
|
|
354 |
db_btn.click(initialize_database, \
|
355 |
inputs=[document, slider_chunk_size, slider_chunk_overlap], \
|
356 |
outputs=[vector_db, collection_name, db_progress])
|
357 |
+
print('IN:',inputs)
|
358 |
+
print('OU:',outputs)
|
359 |
qachain_btn.click(initialize_LLM, \
|
360 |
inputs=[llm_btn, slider_temperature, slider_maxtokens, slider_topk, vector_db], \
|
361 |
outputs=[qa_chain, llm_progress]).then(lambda:[None,"",0,"",0,"",0], \
|