Spaces:
Runtime error
Runtime error
Commit
·
e5831b9
1
Parent(s):
ecf5962
changes
Browse files
app.py
CHANGED
@@ -22,9 +22,9 @@ def suggest_topic(text):
|
|
22 |
return result['labels']
|
23 |
|
24 |
st.title("Topic Suggestion")
|
25 |
-
with st.spinner(Loading Model):
|
26 |
topic_classifier = load_topic_transfomers()
|
27 |
-
st.success(Model_loaded)
|
28 |
|
29 |
whole_text = st.text_input("Enter the text Here: ")
|
30 |
predicted_topic = suggest_topic(whole_text)
|
|
|
22 |
return result['labels']
|
23 |
|
24 |
st.title("Topic Suggestion")
|
25 |
+
with st.spinner("Loading Model....."):
|
26 |
topic_classifier = load_topic_transfomers()
|
27 |
+
st.success("Model_loaded")
|
28 |
|
29 |
whole_text = st.text_input("Enter the text Here: ")
|
30 |
predicted_topic = suggest_topic(whole_text)
|