rickxzo commited on
Commit
11014e0
·
verified ·
1 Parent(s): c18d584

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -8,11 +8,9 @@ pipe = pipeline("sentiment-analysis", model="rickxzo/review-sentiment-analysis",
8
  st.title("Sentiment Analysis with Transformer Model")
9
  text = st.text_area("Enter some text:")
10
 
11
- sentiment={
12
- "LABEL_2":"Positive",
13
- "LABEL_1":"Negative",
14
- }
15
  # Perform sentiment analysis when text is provided
16
  if text:
17
  out = pipe(text)
18
- st.json(sentiment[out[0]["label"]])
 
 
8
  st.title("Sentiment Analysis with Transformer Model")
9
  text = st.text_area("Enter some text:")
10
 
11
+
 
 
 
12
  # Perform sentiment analysis when text is provided
13
  if text:
14
  out = pipe(text)
15
+ st.json(out)
16
+ print("LABEL_2 : Positive\nLABEL_1 : Negative")