Spaces:
Build error
Build error
Commit ·
0ea49b5
1
Parent(s): 9ff73e7
update
Browse files33 unmodified lines34353637383940414243444546474849192 unmodified lines24224324423524524624724833 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 lines visualization_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" 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