Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -64,7 +64,7 @@ class EndpointHandler:
|
|
| 64 |
"probability": float(prob),
|
| 65 |
"top_words": topic_words[:5], # Top 5 words
|
| 66 |
"customLabel": custom_label, # Add custom label
|
| 67 |
-
"contribution":
|
| 68 |
})
|
| 69 |
|
| 70 |
return results
|
|
|
|
| 64 |
"probability": float(prob),
|
| 65 |
"top_words": topic_words[:5], # Top 5 words
|
| 66 |
"customLabel": custom_label, # Add custom label
|
| 67 |
+
"contribution": ranked_topics
|
| 68 |
})
|
| 69 |
|
| 70 |
return results
|