Spaces:
Sleeping
Sleeping
File size: 527 Bytes
a31a650 7e770bd 8207a94 7e770bd a31a650 2852112 8207a94 a31a650 7e770bd d1c4794 93f1899 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
import gradio as gr
#Funciones adicionales
def authenticate(username, password):
usuarios = [("usuario1", "contraseña1"), ("usuario2", "contraseña2")]
for u, p in usuarios:
if username == u and password == p:
return True
return False
#Función principal
def greet(name):
return "Tervetuloa " + name + "!!"
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch()
#iface.launch(auth=("admin", "pass1234"))
#iface.launch(auth=authenticate) |