Lisibonny commited on
Commit
c90738f
1 Parent(s): faccbfc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -25
app.py CHANGED
@@ -40,7 +40,7 @@ def main():
40
  "[Streamlit](https://streamlit.io) is a Python library that allows the creation of interactive, data-driven web applications in Python."
41
  )
42
 
43
- st.sidebar.header("Acerca de los Artículo Noticiosos Indexados")
44
  st.sidebar.markdown(
45
  """
46
  - [Streamlit Documentation](https://docs.streamlit.io/)
@@ -56,30 +56,26 @@ def main():
56
  )
57
 
58
  st.sidebar.header("¿Te gustó mi sitio? ¡Cómprame una café!")
59
-
60
- st.sidebar.html(
61
- """
62
- <div id="donate-button-container">
63
- <div id="donate-button"></div>
64
- <script src="https://www.paypalobjects.com/donate/sdk/donate-sdk.js" charset="UTF-8"></script>
65
- <script>
66
- PayPal.Donation.Button({
67
- env:'production',
68
- hosted_button_id:'VK5ZAB52ZYDNA',
69
- image: {
70
- src:'https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif',
71
- alt:'Donate with PayPal button',
72
- title:'PayPal - The safer, easier way to pay online!',
73
- }
74
- }).render('#donate-button');
75
- </script>
76
- </div>
77
- """
78
- )
79
-
80
-
81
-
82
-
83
 
84
  df=cargar_articulos()
85
  articulos_indexados = pd.read_csv('articulos_indexados.csv')
 
40
  "[Streamlit](https://streamlit.io) is a Python library that allows the creation of interactive, data-driven web applications in Python."
41
  )
42
 
43
+ st.sidebar.header("Artículos Indexados")
44
  st.sidebar.markdown(
45
  """
46
  - [Streamlit Documentation](https://docs.streamlit.io/)
 
56
  )
57
 
58
  st.sidebar.header("¿Te gustó mi sitio? ¡Cómprame una café!")
59
+ with st.sidebar:
60
+ st.html(
61
+ """
62
+ <div id="donate-button-container">
63
+ <div id="donate-button"></div>
64
+ <script src="https://www.paypalobjects.com/donate/sdk/donate-sdk.js" charset="UTF-8"></script>
65
+ <script>
66
+ PayPal.Donation.Button({
67
+ env:'production',
68
+ hosted_button_id:'VK5ZAB52ZYDNA',
69
+ image: {
70
+ src:'https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif',
71
+ alt:'Donate with PayPal button',
72
+ title:'PayPal - The safer, easier way to pay online!',
73
+ }
74
+ }).render('#donate-button');
75
+ </script>
76
+ </div>
77
+ """
78
+ )
 
 
 
 
79
 
80
  df=cargar_articulos()
81
  articulos_indexados = pd.read_csv('articulos_indexados.csv')