import gradio as gr def predecir(imagen): return {"benigno": 0.2, "maligno": 0.1, "normal":0.7} iface = gr.Interface(fn=predecir, inputs="image", outputs="label") iface.launch()