sdbrgo commited on
Commit
c931ab7
·
verified ·
1 Parent(s): 262d143

Update app.py

Browse files

compute_pai() now outputs two dictionaries which assign_typology() receives.

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,10 +30,10 @@ def run_app(feedback_file, adoption_file, num_participants, target_population, h
30
  w_neg=w_neg
31
  )
32
 
33
- pai = pai_calculator.compute_pai(participants_by_group)
34
 
35
  # Step 4: Interpret results
36
- typology = assign_typology(pai, high_th, th)
37
 
38
  return sentiment_metrics, typology
39
 
 
30
  w_neg=w_neg
31
  )
32
 
33
+ pai_1, pai_2 = pai_calculator.compute_pai(participants_by_group)
34
 
35
  # Step 4: Interpret results
36
+ typology = assign_typology(pai_1, pai_2, high_th, th)
37
 
38
  return sentiment_metrics, typology
39