Spaces:
Runtime error
Runtime error
jcmachicao
commited on
Commit
•
e48b6c8
1
Parent(s):
7055cc5
Update app.py
Browse files
app.py
CHANGED
@@ -22,11 +22,17 @@ if file is not None:
|
|
22 |
|
23 |
# Generate text with bullets
|
24 |
text = ''
|
|
|
25 |
for name, group in grouped_df:
|
26 |
-
|
|
|
|
|
|
|
27 |
for index, row in group.iterrows():
|
28 |
-
text
|
29 |
-
|
30 |
-
|
|
|
|
|
31 |
# Download link for text file
|
32 |
-
st.markdown(f'<a href="data:text/plain;charset=utf-8,{
|
|
|
22 |
|
23 |
# Generate text with bullets
|
24 |
text = ''
|
25 |
+
|
26 |
for name, group in grouped_df:
|
27 |
+
|
28 |
+
st.write('\n\n >>> ', option, ': ', name)
|
29 |
+
st.write('Cantidad de afirmaciones: ', len(group))
|
30 |
+
texto_tot = ''
|
31 |
for index, row in group.iterrows():
|
32 |
+
text = 'En el rubro sobre ' + row.Pregunta + ' la categoría ' + row.Categoria + ' responde ' + \
|
33 |
+
row.Respuesta + ' un ' + str(row.dif2) + '% más que la categoría ' + row.Cat_Comparada
|
34 |
+
texto_tot = texto_tot + '\n' + text
|
35 |
+
st.write(texto_tot)
|
36 |
+
|
37 |
# Download link for text file
|
38 |
+
st.markdown(f'<a href="data:text/plain;charset=utf-8,{texto_tot}" download="result.txt">Download Text File</a>', unsafe_allow_html=True)
|