Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from bertopic import BERTopic
|
3 |
|
4 |
-
topic_model = BERTopic.load("
|
5 |
|
6 |
def predict_topic(document):
|
7 |
topics, probabilities = topic_model.transform([document])
|
|
|
1 |
import gradio as gr
|
2 |
from bertopic import BERTopic
|
3 |
|
4 |
+
topic_model = BERTopic.load("davanstrien/label_model")
|
5 |
|
6 |
def predict_topic(document):
|
7 |
topics, probabilities = topic_model.transform([document])
|