pix2tex / app.py
Yiran
update app.py
e4d92c7
raw
history blame
276 Bytes
import gradio as gr
from PIL import Image
from pix2tex.cli import LatexOCR
def greet(name):
return "Hello " + name + "!!"
def predict(img) -> str:
return model(img)
model = LatexOCR()
iface = gr.Interface(fn=greet, inputs="image", outputs="text")
iface.launch()