Spaces:
Runtime error
Runtime error
MJ
commited on
Commit
·
e25cffd
1
Parent(s):
b241691
Updated app.py to fix markdown error
Browse files
app.py
CHANGED
@@ -7,8 +7,8 @@ def run_model():
|
|
7 |
model=models_available[model_picked])
|
8 |
analysis = classifier(text_input)
|
9 |
for output in analysis:
|
10 |
-
|
11 |
-
|
12 |
|
13 |
|
14 |
models_available = {"Roberta Large English": "siebert/sentiment-roberta-large-english",
|
@@ -16,7 +16,7 @@ models_available = {"Roberta Large English": "siebert/sentiment-roberta-large-en
|
|
16 |
"Twitter Roberta": "cardiffnlp/twitter-roberta-base-sentiment"}
|
17 |
|
18 |
st.title("Sentiment Analysis Web Application")
|
19 |
-
text_input = st.text_area("I
|
20 |
model_picked = st.selectbox(
|
21 |
"Choose a model to run on", options=models_available.keys())
|
22 |
|
|
|
7 |
model=models_available[model_picked])
|
8 |
analysis = classifier(text_input)
|
9 |
for output in analysis:
|
10 |
+
to_output = "Sentiment: ", output["label"], " Score: ", output["score"]
|
11 |
+
st.markdown(to_output)
|
12 |
|
13 |
|
14 |
models_available = {"Roberta Large English": "siebert/sentiment-roberta-large-english",
|
|
|
16 |
"Twitter Roberta": "cardiffnlp/twitter-roberta-base-sentiment"}
|
17 |
|
18 |
st.title("Sentiment Analysis Web Application")
|
19 |
+
text_input = st.text_area(placeholder="I Love Pizza")
|
20 |
model_picked = st.selectbox(
|
21 |
"Choose a model to run on", options=models_available.keys())
|
22 |
|