Update app.py
Browse files
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 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
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
|