Update app.py
Browse filescompute_pai() now outputs two dictionaries which assign_typology() receives.
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 |
-
|
| 34 |
|
| 35 |
# Step 4: Interpret results
|
| 36 |
-
typology = assign_typology(
|
| 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 |
|