Spaces:
Runtime error
Runtime error
Commit
·
43d8590
1
Parent(s):
1c07b94
Update app.py
Browse files
app.py
CHANGED
@@ -103,29 +103,29 @@ with model_2:
|
|
103 |
st.write(sentiment)
|
104 |
|
105 |
with model:
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
text_en = translate_text(text)
|
113 |
st.write("*Translation:* {}".format(text_en))
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
|
119 |
with dataset:
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
|
130 |
with analysis:
|
131 |
-
|
|
|
103 |
st.write(sentiment)
|
104 |
|
105 |
with model:
|
106 |
+
st.header("Modelo para Tradução e Classificação!")
|
107 |
+
text = st.text_area("Coloque seu texto sobre mercado financeiro em português!")
|
108 |
+
|
109 |
+
submit = st.button('Generate')
|
110 |
+
|
111 |
+
if text:
|
112 |
text_en = translate_text(text)
|
113 |
st.write("*Translation:* {}".format(text_en))
|
114 |
+
sentiment = sentiment_classification(text_en, sid_obj)
|
115 |
+
st.write("*Sentiment:* {} - {}".format(sentiment[0], sentiment[1]))
|
116 |
+
theme = theme_classification(text_en, classifier)
|
117 |
+
st.write("*Theme:* {}".format(theme))
|
118 |
|
119 |
with dataset:
|
120 |
+
st.header("Dados utilizados no projeto!")
|
121 |
+
st.write("Os dados blablablabla")
|
122 |
+
st.dataframe(df)
|
123 |
+
st.subheader("Descrição das colunas:")
|
124 |
+
st.write("\t*- Texts:* Coluna que mostra os textos financeiros")
|
125 |
+
st.write("\t*- Texts:* Coluna que mostra os textos financeiros")
|
126 |
+
st.write("\t*- Texts:* Coluna que mostra os textos financeiros")
|
127 |
+
st.write("\t*- Texts:* Coluna que mostra os textos financeiros")
|
128 |
+
st.write("\t*- Texts:* Coluna que mostra os textos financeiros")
|
129 |
|
130 |
with analysis:
|
131 |
+
st.header("Visualização dos dados utilizados")
|