Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,8 @@
|
|
|
|
1 |
from bertopic import BERTopic
|
2 |
-
topic_model=BERTopic.load("MaartenGr/BERTopic_Wikipedia")
|
3 |
|
4 |
-
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
from bertopic import BERTopic
|
|
|
3 |
|
4 |
+
text=st.text_area("Enter customer feedback")
|
5 |
+
topic_model=BERTopic.load("MaartenGr/BERTopic_Wikipedia")
|
6 |
+
if text:
|
7 |
+
results = topic_model(text)
|
8 |
+
st.json(results)
|