| import gradio as gr | |
| def gradio_classify(image): | |
| image_bytes = image.tobytes() | |
| return classify(image_bytes) | |
| iface = gr.Interface(fn=gradio_classify, inputs=gr.Image(type="pil"), outputs="text") | |
| iface.launch() | |
| import gradio as gr | |
| def gradio_classify(image): | |
| image_bytes = image.tobytes() | |
| return classify(image_bytes) | |
| iface = gr.Interface(fn=gradio_classify, inputs=gr.Image(type="pil"), outputs="text") | |
| iface.launch() | |