Spaces:
Sleeping

hf-test-api / app.py
vjlopezvilla's picture
Update app.py
6c75932 verified
Raw History Blame Contribute Delete
281 Bytes
import gradio as gr
def api(nombre):
return {
"status": "ok",
"message": f"Hola {nombre}",
"length": len(nombre)
}
demo = gr.Interface(
fn=api,
inputs=gr.Textbox(label="nombre"),
outputs="json",
title="HF Test API"
)
demo.launch()