File size: 285 Bytes
5650861
 
 
 
 
1
2
3
4
5
import gradio as gr
from transformers import pipeline

pipe = pipeline(task="image-to-text", model="kha-white/manga-ocr-base")
gr.Interface.from_pipeline(pipe, title="Manga OCR", description="Japanese Character Recognization from Mangas", allow_flagging="never").launch(inbrowser=True)