Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -101,6 +101,7 @@ def _storage_root() -> Path:
|
|
| 101 |
tmp = Path(tempfile.gettempdir()) / "alz_companion"
|
| 102 |
tmp.mkdir(parents=True, exist_ok=True)
|
| 103 |
return tmp
|
|
|
|
| 104 |
STORAGE_ROOT = _storage_root()
|
| 105 |
INDEX_BASE = STORAGE_ROOT / "index"
|
| 106 |
# --- NEW: Define path for the auto-loading folder ---
|
|
@@ -981,11 +982,12 @@ with gr.Blocks(theme=gr.themes.Soft(), css=CSS) as demo:
|
|
| 981 |
run_comprehensive_btn.click(
|
| 982 |
fn=lambda: run_comprehensive_evaluation(
|
| 983 |
vs_general=ensure_index("All"),
|
| 984 |
-
vs_personal=personal_vectorstore,
|
| 985 |
nlu_vectorstore=nlu_vectorstore,
|
| 986 |
-
config=CONFIG
|
| 987 |
-
|
| 988 |
-
|
|
|
|
| 989 |
outputs=[batch_summary_md, comprehensive_results_df, comprehensive_results_df]
|
| 990 |
)
|
| 991 |
|
|
|
|
| 101 |
tmp = Path(tempfile.gettempdir()) / "alz_companion"
|
| 102 |
tmp.mkdir(parents=True, exist_ok=True)
|
| 103 |
return tmp
|
| 104 |
+
|
| 105 |
STORAGE_ROOT = _storage_root()
|
| 106 |
INDEX_BASE = STORAGE_ROOT / "index"
|
| 107 |
# --- NEW: Define path for the auto-loading folder ---
|
|
|
|
| 982 |
run_comprehensive_btn.click(
|
| 983 |
fn=lambda: run_comprehensive_evaluation(
|
| 984 |
vs_general=ensure_index("All"),
|
| 985 |
+
# vs_personal=personal_vectorstore, # <--- REMOVE THIS LINE
|
| 986 |
nlu_vectorstore=nlu_vectorstore,
|
| 987 |
+
config=CONFIG,
|
| 988 |
+
storage_path=STORAGE_ROOT # <--- ADD THIS LINE to pass the correct path
|
| 989 |
+
),
|
| 990 |
+
# The output list now has three components. This part is correct.
|
| 991 |
outputs=[batch_summary_md, comprehensive_results_df, comprehensive_results_df]
|
| 992 |
)
|
| 993 |
|