File size: 197 Bytes
f66c338
 
7eb4e1d
 
f66c338
7eb4e1d
f66c338
1
2
3
4
5
6
7
import gradio as gr

def predict_alexnet(image):
    return {'benigno': 0.2, 'maligno': 0.1, 'normal': 0.7}

iface = gr.Interface(fn=predict_alexnet, inputs="image", outputs="label")
iface.launch()