EnzoBustos commited on
Commit
445aa77
1 Parent(s): 0dd0d1d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -10
app.py CHANGED
@@ -56,15 +56,8 @@ text = st.text_area("Coloque seu texto sobre mercado financeiro em português!")
56
 
57
  if text:
58
  text_en = translate_text(text)
 
59
  sentiment = sentiment_classification(text_en)
 
60
  theme = theme_classification(text_en)
61
-
62
- st.write("Translation: {}".format(text_en))
63
- st.write("Sentiment: {}".format(sentiment))
64
- st.write("Theme: {}".format(theme))
65
-
66
- st.json({
67
- "Translation": text_en,
68
- "Sentiment": sentiment,
69
- "Theme": theme,
70
- })
 
56
 
57
  if text:
58
  text_en = translate_text(text)
59
+ st.write("Translation: {}".format(text_en))
60
  sentiment = sentiment_classification(text_en)
61
+ st.write("Sentiment: {} - {}".format(sentiment[0], sentiment[1]))
62
  theme = theme_classification(text_en)
63
+ st.write("Theme: {}".format(theme))