Spaces:
Runtime error
Runtime error
EnzoBustos
commited on
Commit
•
eb85f71
1
Parent(s):
7ec4e64
Minor change
Browse files
app.py
CHANGED
@@ -112,7 +112,7 @@ def run_models(parameters_list):
|
|
112 |
|
113 |
out_translation += " - Translated by {}".format(parameters_list[0])
|
114 |
out_sentiment += " - Analyzed by {}".format(parameters_list[1])
|
115 |
-
|
116 |
return out_translation, out_sentiment, out_classification
|
117 |
|
118 |
sheet_id = "1TjDuF6dmirgdpuG_o5Y4CBPQdfmkksS1"
|
@@ -134,7 +134,7 @@ with header:
|
|
134 |
|
135 |
with model:
|
136 |
|
137 |
-
st.header("Modelo para Tradução e Classificação
|
138 |
|
139 |
with model_1:
|
140 |
translation_pt_to_en = st.selectbox('Qual modelo você deseja usar para tradução?', ('TextBlob', 'M2M100', 'OPUS', 'T5', 'mBART'))
|
@@ -190,4 +190,4 @@ with analysis:
|
|
190 |
image_path = os.path.dirname(os.path.realpath(__file__)) + '/Images/{}.png'.format(wordcloud)
|
191 |
image = Image.open(image_path)
|
192 |
st.image(image, caption='WordCloud dos textos classificados como {}'.format(wordcloud))
|
193 |
-
|
|
|
112 |
|
113 |
out_translation += " - Translated by {}".format(parameters_list[0])
|
114 |
out_sentiment += " - Analyzed by {}".format(parameters_list[1])
|
115 |
+
|
116 |
return out_translation, out_sentiment, out_classification
|
117 |
|
118 |
sheet_id = "1TjDuF6dmirgdpuG_o5Y4CBPQdfmkksS1"
|
|
|
134 |
|
135 |
with model:
|
136 |
|
137 |
+
st.header("Modelo para Tradução e Classificação")
|
138 |
|
139 |
with model_1:
|
140 |
translation_pt_to_en = st.selectbox('Qual modelo você deseja usar para tradução?', ('TextBlob', 'M2M100', 'OPUS', 'T5', 'mBART'))
|
|
|
190 |
image_path = os.path.dirname(os.path.realpath(__file__)) + '/Images/{}.png'.format(wordcloud)
|
191 |
image = Image.open(image_path)
|
192 |
st.image(image, caption='WordCloud dos textos classificados como {}'.format(wordcloud))
|
193 |
+
|