Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ def merlin_chat(message, history):
|
|
51 |
r.extract_keywords_from_text(chat_text)
|
52 |
ents_found = ents_found + r.get_ranked_phrases()[:3]
|
53 |
context = ""
|
54 |
-
scores = topic_model(
|
55 |
if ents_found:
|
56 |
max_score = 0
|
57 |
for k in range(len(ents_found)):
|
|
|
51 |
r.extract_keywords_from_text(chat_text)
|
52 |
ents_found = ents_found + r.get_ranked_phrases()[:3]
|
53 |
context = ""
|
54 |
+
scores = topic_model(chat_text, ents_found, multi_label=True)['scores']
|
55 |
if ents_found:
|
56 |
max_score = 0
|
57 |
for k in range(len(ents_found)):
|