Ahmad-Moiz commited on
Commit
e91630e
1 Parent(s): e5d06f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -9
app.py CHANGED
@@ -3,23 +3,21 @@ from transformers import pipeline
3
 
4
  model_path = "citizenlab/twitter-xlm-roberta-base-sentiment-finetunned"
5
 
6
- # Setting the background color of the Streamlit app
7
- PAGE_BG_COLOR = "#FFA500" # Orange color
8
 
 
9
  st.markdown(
10
- f"""
11
  <style>
12
- .reportview-container {{
13
- background-color: {PAGE_BG_COLOR};
14
- }}
15
  </style>
16
  """,
17
  unsafe_allow_html=True,
18
  )
19
 
20
- st.set_page_config(page_title="Sentiment Analysis App")
21
-
22
- sentiment_classifier = pipeline("text-classification", model=model_path, tokenizer=model_path)
23
 
24
  st.title("Sentiment Analysis App")
25
 
 
3
 
4
  model_path = "citizenlab/twitter-xlm-roberta-base-sentiment-finetunned"
5
 
6
+ st.set_page_config(page_title="Sentiment Analysis App", layout="wide")
 
7
 
8
+ # Set the background color of the Streamlit app using CSS
9
  st.markdown(
10
+ """
11
  <style>
12
+ body {
13
+ background-color: #FFA500; /* Orange color */
14
+ }
15
  </style>
16
  """,
17
  unsafe_allow_html=True,
18
  )
19
 
20
+ sentiment_classifier = pipeline("text-classification", model=model_path)
 
 
21
 
22
  st.title("Sentiment Analysis App")
23