Yorbely commited on
Commit
bcf3875
1 Parent(s): e3e97a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -15,12 +15,11 @@ def main():
15
  lista1 = [random.randint(0, 20) for _ in range(N)]
16
  lista2 = [random.randint(0, 20) for _ in range(N)]
17
 
18
- # Button to perform analysis
19
- if st.button("Make Analysis"):
20
- if len(lista1) != 0 and len(lista2) != 0:
21
- analizar_inversiones(lista1, lista2)
22
- else:
23
- st.write(":red[Please, generate random numbers' lists]")
24
 
25
  def analizar_inversiones(lista1, lista2):
26
  # Convertir las listas en arrays numpy
 
15
  lista1 = [random.randint(0, 20) for _ in range(N)]
16
  lista2 = [random.randint(0, 20) for _ in range(N)]
17
 
18
+ # Button to perform analysis
19
+ if len(lista1) != 0 and len(lista2) != 0:
20
+ analizar_inversiones(lista1, lista2)
21
+ else:
22
+ st.write(":red[Please, generate random numbers' lists]")
 
23
 
24
  def analizar_inversiones(lista1, lista2):
25
  # Convertir las listas en arrays numpy