EngHin-text-ex / app.py
Sensei13k's picture
created app.py to deploy gradio
2c10add verified
raw
history blame contribute delete
261 Bytes
import gradio as gr
from PIL import Image
import pytesseract
def ocr(image):
extracted_text = pytesseract.image_to_string(image, lang='eng+hin')
return extracted_text
iface = gr.Interface(fn=ocr, inputs=gr.Image(type="pil"), outputs="text")
iface.launch()