corykhal commited on
Commit
a057f42
1 Parent(s): 3097620

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -34
app.py CHANGED
@@ -1,37 +1,3 @@
1
- # import streamlit as st
2
- # from transformers import pipeline
3
-
4
- # st.set_page_config(page_title="AI Project", page_icon=":tada:", layout="wide")
5
-
6
- # with st.container():
7
- # st.title("Hello! Welcome to the Sentiment Analysis App :wave:")
8
- # st.header("By: Cory Khalilollahi")
9
-
10
- # with st.container():
11
- # st.write("---")
12
- # text = st.text_input("Please enter any text to use for the sentiment analysis:",
13
- # value="Hello! It is a pleasure to meet you!")
14
- # model = st.selectbox(
15
- # "Please select one of the following pre-trained models:",
16
- # ["finiteautomata/bertweet-base-sentiment-analysis",
17
- # 'bhadresh-savani/distilbert-base-uncased-emotion',
18
- # "nlptown/bert-base-multilingual-uncased-sentiment"]
19
- # )
20
- # analysis = pipeline("sentiment-analysis", model=model)
21
-
22
- # with st.container():
23
- # st.write("---")
24
- # if st.button("Analyze!"):
25
- # result = analysis(text)
26
- # sentiment = result[0]["label"]
27
- # score = result[0]["score"]
28
-
29
- # sentiment = "Sentiment: " + sentiment
30
- # score = "Score: " + str(score * 100)[:7] + "%"
31
-
32
- # st.title(sentiment)
33
- # st.title(score)
34
-
35
  import streamlit as st
36
  from transformers import pipeline
37
  import pandas as pd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import streamlit as st
2
  from transformers import pipeline
3
  import pandas as pd