kyled commited on
Commit
9f4d605
1 Parent(s): 552048c

added loading spinner for downloading model

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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
- classifier = t.pipeline("zero-shot-classification",
8
- model="facebook/bart-large-mnli",
9
- multi_class=True)
 
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',