agshubhi commited on
Commit
b58ec2e
1 Parent(s): 6b07bfa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -1,4 +1,8 @@
 
1
  from bertopic import BERTopic
2
- topic_model=BERTopic.load("MaartenGr/BERTopic_Wikipedia")
3
 
4
- topic_model.get_topic_info()
 
 
 
 
 
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)