KeenWoo commited on
Commit
060ce8a
·
verified ·
1 Parent(s): ac92932

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -11
app.py CHANGED
@@ -980,17 +980,15 @@ with gr.Blocks(theme=gr.themes.Soft(), css=CSS) as demo:
980
 
981
  # Then update the .click() event handler
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
-
994
  demo.load(auto_setup_on_load, inputs=[active_theme], outputs=[settings_state, files_box, mgmt_status])
995
  demo.load(load_test_fixtures)
996
  test_save_btn.click(fn=test_save_file, inputs=None, outputs=[test_status])
 
980
 
981
  # Then update the .click() event handler
982
  run_comprehensive_btn.click(
983
+ fn=lambda: run_comprehensive_evaluation(
984
+ vs_general=ensure_index("All"),
985
+ vs_personal=personal_vectorstore, # <-- This is correctly passed in
986
+ nlu_vectorstore=nlu_vectorstore,
987
+ config=CONFIG
988
+ ),
989
+ outputs=[batch_summary_md, comprehensive_results_df, comprehensive_results_df]
990
+ )
991
+
 
 
992
  demo.load(auto_setup_on_load, inputs=[active_theme], outputs=[settings_state, files_box, mgmt_status])
993
  demo.load(load_test_fixtures)
994
  test_save_btn.click(fn=test_save_file, inputs=None, outputs=[test_status])