Spaces:
Build error
Build error
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() |