Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -111,7 +111,8 @@ for t in topics.tolist():
|
|
111 |
freq = selected_data["scores"][selected_data.index[0]]
|
112 |
keyword_freq_pairs = zip(keywords, freq)
|
113 |
most_frequent_keyword = max(keyword_freq_pairs, key=lambda x: x[1])
|
114 |
-
|
|
|
115 |
input += ", [" + ", ".join(keywords) + "]"
|
116 |
|
117 |
|
|
|
111 |
freq = selected_data["scores"][selected_data.index[0]]
|
112 |
keyword_freq_pairs = zip(keywords, freq)
|
113 |
most_frequent_keyword = max(keyword_freq_pairs, key=lambda x: x[1])
|
114 |
+
print(most_frequent_keyword[0].capitalize())
|
115 |
+
mrk.append(most_frequent_keyword[0].capitalize())
|
116 |
input += ", [" + ", ".join(keywords) + "]"
|
117 |
|
118 |
|