Instructions to use SCANSKY/BERTopic-Tourism-English with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- BERTopic
How to use SCANSKY/BERTopic-Tourism-English with BERTopic:
from bertopic import BERTopic model = BERTopic.load("SCANSKY/BERTopic-Tourism-English") - Notebooks
- Google Colab
- Kaggle
Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -15,7 +15,7 @@ class EndpointHandler:
|
|
| 15 |
"""
|
| 16 |
try:
|
| 17 |
# Directly work with the incoming data dictionary
|
| 18 |
-
text_input = data.get("
|
| 19 |
return text_input
|
| 20 |
except Exception as e:
|
| 21 |
raise ValueError(f"Error during preprocessing: {str(e)}")
|
|
|
|
| 15 |
"""
|
| 16 |
try:
|
| 17 |
# Directly work with the incoming data dictionary
|
| 18 |
+
text_input = data.get("inputs", "")
|
| 19 |
return text_input
|
| 20 |
except Exception as e:
|
| 21 |
raise ValueError(f"Error during preprocessing: {str(e)}")
|