ihsan66 commited on
Commit
345b10c
1 Parent(s): 965f03f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -1,4 +1,3 @@
1
- !pip install transformers
2
  import streamlit as st
3
  from transformers import pipeline, TFAutoModelForSequenceClassification, AutoTokenizer
4
  from datasets import load_dataset
@@ -59,4 +58,4 @@ if Run_Button and input_text:
59
  # Display the sentiment in a more user-friendly format
60
  sentiment = output[0]['label']
61
  score = output[0]['score']
62
- st.write(f"Sentiment: {sentiment} (Score: {score:.2f}")
 
 
1
  import streamlit as st
2
  from transformers import pipeline, TFAutoModelForSequenceClassification, AutoTokenizer
3
  from datasets import load_dataset
 
58
  # Display the sentiment in a more user-friendly format
59
  sentiment = output[0]['label']
60
  score = output[0]['score']
61
+ st.write(f"Sentiment: {sentiment} (Score: {score:.2f})") # Corrected line with closed parenthesis