EnzoBustos commited on
Commit
798e863
·
1 Parent(s): 7572b46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -71,8 +71,8 @@ with model_1:
71
  'Qual modelo você deseja usar para tradução?', ('TextBlob', 'M2M100', 'OPUS'))
72
  sentimentor = st.selectbox(
73
  'Qual modelo você deseja usar para a análise de sentimentos?', ('Vader', 'FinBERT'))
74
- text = st.text_area("Coloque seu texto sobre mercado financeiro em português!",
75
- "As ações da Ultrafarma subiram em 98% no último bimestre, segundo os dados da revista!")
76
 
77
  with model_2:
78
  if text:
@@ -94,6 +94,7 @@ with model_2:
94
  st.write(text_en)
95
  st.write(sentiment)
96
 
 
97
  with model:
98
  st.header("Modelo para Tradução e Classificação!")
99
  text = st.text_area(
@@ -108,6 +109,7 @@ with model:
108
  st.write("*Sentiment:* {} - {}".format(sentiment[0], sentiment[1]))
109
  theme = theme_classification(text_en, classifier)
110
  st.write("*Theme:* {}".format(theme))
 
111
 
112
  with dataset:
113
  st.header("Dados utilizados no projeto!")
 
71
  'Qual modelo você deseja usar para tradução?', ('TextBlob', 'M2M100', 'OPUS'))
72
  sentimentor = st.selectbox(
73
  'Qual modelo você deseja usar para a análise de sentimentos?', ('Vader', 'FinBERT'))
74
+
75
+ text = st.text_input(label="Coloque seu texto sobre mercado financeiro em português!", value = text)
76
 
77
  with model_2:
78
  if text:
 
94
  st.write(text_en)
95
  st.write(sentiment)
96
 
97
+ '''
98
  with model:
99
  st.header("Modelo para Tradução e Classificação!")
100
  text = st.text_area(
 
109
  st.write("*Sentiment:* {} - {}".format(sentiment[0], sentiment[1]))
110
  theme = theme_classification(text_en, classifier)
111
  st.write("*Theme:* {}".format(theme))
112
+ '''
113
 
114
  with dataset:
115
  st.header("Dados utilizados no projeto!")