File size: 219 Bytes
f66c338
e1d8c90
f66c338
7eb4e1d
f58f16f
f66c338
6db61bc
d0ce59f
1
2
3
4
5
6
7
8
import gradio as gr
import json

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(share=True)