Update app.py
Browse files
app.py
CHANGED
|
@@ -116,17 +116,14 @@ def nicknames():
|
|
| 116 |
lista_usuarios =[]
|
| 117 |
for i in items:
|
| 118 |
lista_usuarios.append(i['username']['S'])
|
| 119 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
except Exception as e:
|
| 121 |
print(f"An error occurred: {str(e)}")
|
| 122 |
-
|
| 123 |
-
for nombre in lista_usuarios:
|
| 124 |
-
if nombre in nombres_chistosos:
|
| 125 |
-
nombres_chistosos.remove(nombre)
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
random_nickname = random.choice(nombres_chistosos)
|
| 129 |
-
return random_nickname
|
| 130 |
|
| 131 |
def gradio_interface():
|
| 132 |
import gradio as gr
|
|
|
|
| 116 |
lista_usuarios =[]
|
| 117 |
for i in items:
|
| 118 |
lista_usuarios.append(i['username']['S'])
|
| 119 |
+
|
| 120 |
+
for nombre in lista_usuarios:
|
| 121 |
+
if nombre in nombres_chistosos:
|
| 122 |
+
nombres_chistosos.remove(nombre)
|
| 123 |
+
random_nickname = random.choice(nombres_chistosos)
|
| 124 |
+
return random_nickname
|
| 125 |
except Exception as e:
|
| 126 |
print(f"An error occurred: {str(e)}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 127 |
|
| 128 |
def gradio_interface():
|
| 129 |
import gradio as gr
|