krishnatherokar's picture
docs: update notebook info
13d25bd
Raw
History Blame Contribute Delete
362 Bytes
import gradio as gr
from utils import predict_and_decode
import os
example_path = "examples"
example_list = [os.path.join(example_path, f) for f in os.listdir(example_path)]
interface = gr.Interface(
fn=predict_and_decode,
inputs=gr.Image(type="pil"),
outputs="text",
title="Captcha Recognition",
examples=example_list
)
interface.launch()