import gradio as gr | |
def predict(image): | |
predictions = image | |
return {image} | |
iface = gr.Interface( | |
predict, | |
inputs=gr.inputs.Image(label="Upload hot dog candidate", type="filepath"), | |
outputs=gr.outputs, | |
title="Hot Dog? Or Not?", | |
) | |
iface.launch() |