Spaces:
Runtime error
Runtime error
added loading spinner for downloading model
Browse files
app.py
CHANGED
@@ -4,9 +4,10 @@ import plotly.express as px
|
|
4 |
import pandas as pd
|
5 |
|
6 |
st.title("Phrase Feeling Analysis")
|
7 |
-
|
8 |
-
|
9 |
-
|
|
|
10 |
|
11 |
x = st.text_input("Enter your title here:")
|
12 |
candidate_labels = ['anger', 'sadness', 'fear', 'joy', 'interest',
|
|
|
4 |
import pandas as pd
|
5 |
|
6 |
st.title("Phrase Feeling Analysis")
|
7 |
+
with st.spinner():
|
8 |
+
classifier = t.pipeline("zero-shot-classification",
|
9 |
+
model="facebook/bart-large-mnli",
|
10 |
+
multi_class=True)
|
11 |
|
12 |
x = st.text_input("Enter your title here:")
|
13 |
candidate_labels = ['anger', 'sadness', 'fear', 'joy', 'interest',
|