Spaces:
Runtime error
Runtime error
Commit
โข
6297b77
1
Parent(s):
da629b8
Update app.py
Browse files
app.py
CHANGED
@@ -165,7 +165,7 @@ if topic == "Sentiment Analysis":
|
|
165 |
st.write(result)
|
166 |
with graph_col:
|
167 |
fig = px.bar(x=['NEGATIVE (ใใฌใใฃใ)','POSITIVE (ใใธใใฃใ)'],y=[result['NEGATIVE (ใใฌใใฃใ)'],result['POSITIVE (ใใธใใฃใ)']])
|
168 |
-
fig.update_layout(title="Probability distribution of Sentiment for the given text
|
169 |
yaxis_title="Probability (็ขบ็)")
|
170 |
fig.update_traces(marker_color=['#FF7F7F','#32CD32'])
|
171 |
st.plotly_chart(fig)
|
|
|
165 |
st.write(result)
|
166 |
with graph_col:
|
167 |
fig = px.bar(x=['NEGATIVE (ใใฌใใฃใ)','POSITIVE (ใใธใใฃใ)'],y=[result['NEGATIVE (ใใฌใใฃใ)'],result['POSITIVE (ใใธใใฃใ)']])
|
168 |
+
fig.update_layout(title="Probability distribution of Sentiment for the given text",\
|
169 |
yaxis_title="Probability (็ขบ็)")
|
170 |
fig.update_traces(marker_color=['#FF7F7F','#32CD32'])
|
171 |
st.plotly_chart(fig)
|