Spaces:
Build error
Build error
Commit ·
0ea49b5
1
Parent(s): 9ff73e7
update
Browse files33 unmodified lines343536373839192 unmodified lines23223323423523623723833 unmodified lines"Plan-of-SQLs": "htmls_POS_mod2"}METHODS = ["No-XAI", "Dater", "Chain-of-Table", "Plan-of-SQLs"]def save_session_data(username, data):192 unmodified linesvisualization_file = session_data['selected_samples'][sample_id]['file']index = visualization_file.split('-')[1].split('.')[0]ground_truth_key = f"{method.upper().replace('-', '_')}_test-{index}.html"if ground_truth_key in ground_truth:model_prediction = ground_truth[ground_truth_key]['answer'].upper()33 unmodified lines34353637383940414243444546474849192 unmodified lines24224324424524624724833 unmodified lines"Plan-of-SQLs": "htmls_POS_mod2"}def get_method_dir(method):if method == 'No-XAI':return 'NO_XAI'elif method == 'Dater':return 'DATER'elif method == 'Chain-of-Table':return 'COT'elif method == 'Plan-of-SQLs':return 'POS'METHODS = ["No-XAI", "Dater", "Chain-of-Table", "Plan-of-SQLs"]def save_session_data(username, data):192 unmodified linesvisualization_file = session_data['selected_samples'][sample_id]['file']index = visualization_file.split('-')[1].split('.')[0]ground_truth_key = f"{get_method_dir(method)}_test-{index}.html"if ground_truth_key in ground_truth:model_prediction = ground_truth[ground_truth_key]['answer'].upper()
app.py+11-1