fix indentation
Browse files- handler.py +6 -6
handler.py
CHANGED
|
@@ -396,12 +396,12 @@ def run_math_density(transcript, uptake_speaker=None):
|
|
| 396 |
print("math terms: ", match_list)
|
| 397 |
utt.num_math_terms = num_matches
|
| 398 |
utt.math_terms = match_list
|
| 399 |
-
|
| 400 |
-
|
| 401 |
-
|
| 402 |
-
|
| 403 |
-
|
| 404 |
-
|
| 405 |
|
| 406 |
class EndpointHandler():
|
| 407 |
def __init__(self, path="."):
|
|
|
|
| 396 |
print("math terms: ", match_list)
|
| 397 |
utt.num_math_terms = num_matches
|
| 398 |
utt.math_terms = match_list
|
| 399 |
+
dict_list = []
|
| 400 |
+
for word in math_word_cloud.keys():
|
| 401 |
+
dict_list.append(
|
| 402 |
+
{'text': word, 'value': math_word_cloud[word][0], 'category': math_word_cloud[word][1]})
|
| 403 |
+
sorted_dict_list = sorted(dict_list, key=lambda x: x['value'], reverse=True)
|
| 404 |
+
return sorted_dict_list[:50]
|
| 405 |
|
| 406 |
class EndpointHandler():
|
| 407 |
def __init__(self, path="."):
|