Khushter-Kaifi
commited on
Commit
Β·
7b23e57
1
Parent(s):
255c7dc
Updated App
Browse files
app.py
CHANGED
@@ -15,6 +15,7 @@ sentiment_pipeline = pipeline("sentiment-analysis")
|
|
15 |
|
16 |
# Sets the title of the Streamlit web application
|
17 |
st.title("Financial Sentiment Analysis Using HuggingFace π \n Team Name:- Free Thinkers")
|
|
|
18 |
|
19 |
# Displays a text input box where the user can enter a sentence for sentiment analysis.
|
20 |
st.write("Enter a Sentence to Analyze the Sentiment:")
|
@@ -32,7 +33,7 @@ if user_input:
|
|
32 |
|
33 |
|
34 |
# Displaying Results:
|
35 |
-
#If there is user input, it displays the sentiment and confidence score.
|
36 |
# The sentiment is extracted from the "label" field in the result, and the confidence score is extracted from the "score" field.
|
37 |
st.write(f"Sentiment: {sentiment}")
|
38 |
st.write(f"Confidence: {confidence:.2%}")
|
|
|
15 |
|
16 |
# Sets the title of the Streamlit web application
|
17 |
st.title("Financial Sentiment Analysis Using HuggingFace π \n Team Name:- Free Thinkers")
|
18 |
+
st.subheader ("Local Push")
|
19 |
|
20 |
# Displays a text input box where the user can enter a sentence for sentiment analysis.
|
21 |
st.write("Enter a Sentence to Analyze the Sentiment:")
|
|
|
33 |
|
34 |
|
35 |
# Displaying Results:
|
36 |
+
# If there is user input, it displays the sentiment and confidence score.
|
37 |
# The sentiment is extracted from the "label" field in the result, and the confidence score is extracted from the "score" field.
|
38 |
st.write(f"Sentiment: {sentiment}")
|
39 |
st.write(f"Confidence: {confidence:.2%}")
|