Spaces:
Sleeping
Sleeping
Commit
·
2443662
1
Parent(s):
78b9517
new code for showing chunks
Browse files
app.py
CHANGED
|
@@ -222,7 +222,7 @@ def main():
|
|
| 222 |
|
| 223 |
log_message("Запуск AIEXP - AI Expert для нормативной документации")
|
| 224 |
|
| 225 |
-
query_engine, chunks_df, reranker, vector_index = initialize_system(
|
| 226 |
repo_id=HF_REPO_ID,
|
| 227 |
hf_token=HF_TOKEN,
|
| 228 |
download_dir=DOWNLOAD_DIR,
|
|
@@ -237,7 +237,8 @@ def main():
|
|
| 237 |
demo = create_demo_interface(
|
| 238 |
answer_question_func=main_answer_question,
|
| 239 |
switch_model_func=main_switch_model,
|
| 240 |
-
current_model=current_model
|
|
|
|
| 241 |
)
|
| 242 |
demo.launch(
|
| 243 |
server_name="0.0.0.0",
|
|
|
|
| 222 |
|
| 223 |
log_message("Запуск AIEXP - AI Expert для нормативной документации")
|
| 224 |
|
| 225 |
+
query_engine, chunks_df, reranker, vector_index, chunk_info = initialize_system(
|
| 226 |
repo_id=HF_REPO_ID,
|
| 227 |
hf_token=HF_TOKEN,
|
| 228 |
download_dir=DOWNLOAD_DIR,
|
|
|
|
| 237 |
demo = create_demo_interface(
|
| 238 |
answer_question_func=main_answer_question,
|
| 239 |
switch_model_func=main_switch_model,
|
| 240 |
+
current_model=current_model,
|
| 241 |
+
chunk_info=chunk_info
|
| 242 |
)
|
| 243 |
demo.launch(
|
| 244 |
server_name="0.0.0.0",
|