luulinh90s commited on
Commit
9ff73e7
·
1 Parent(s): 65f3385
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -208,7 +208,16 @@ def completed(username):
208
  responses = session_data['responses']
209
  method = session_data['method']
210
 
211
- json_file = f'Tabular_LLMs_human_study_vis_6_{method.upper().replace("-", "_")}.json'
 
 
 
 
 
 
 
 
 
212
 
213
  with open(json_file, 'r') as f:
214
  ground_truth = json.load(f)
 
208
  responses = session_data['responses']
209
  method = session_data['method']
210
 
211
+ if method == "Chain-of-Table":
212
+ json_file = 'Tabular_LLMs_human_study_vis_6_COT.json'
213
+ elif method == "Plan-of-SQLs":
214
+ json_file = 'Tabular_LLMs_human_study_vis_6_POS.json'
215
+ elif method == "Dater":
216
+ json_file = 'Tabular_LLMs_human_study_vis_6_DATER.json'
217
+ elif method == "No-XAI":
218
+ json_file = 'Tabular_LLMs_human_study_vis_6_NO_XAI.json'
219
+ else:
220
+ return "Invalid method", 400
221
 
222
  with open(json_file, 'r') as f:
223
  ground_truth = json.load(f)