hasibzunair commited on
Commit
4c31e3f
Β·
1 Parent(s): 2ca57fd
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -9,6 +9,7 @@ os.system("pip install pix2tex")
9
  from pix2tex import cli as pix2tex
10
 
11
  model = pix2tex.LatexOCR()
 
12
 
13
 
14
  def inference(input_image):
@@ -31,7 +32,7 @@ demo = gr.Interface(
31
  description=description,
32
  article=article,
33
  inputs=gr.inputs.Image(
34
- type="filepath", label="Input: Image of your equation you want to covert."
35
  ),
36
  outputs=gr.outputs.Textbox(type="text", label="Output: Converted LaTeX code."),
37
  examples=["./eqn1.png", "./eqn2.png", "./eqn3.png"],
 
9
  from pix2tex import cli as pix2tex
10
 
11
  model = pix2tex.LatexOCR()
12
+ print(model)
13
 
14
 
15
  def inference(input_image):
 
32
  description=description,
33
  article=article,
34
  inputs=gr.inputs.Image(
35
+ type="pil", label="Input: Image of your equation you want to covert."
36
  ),
37
  outputs=gr.outputs.Textbox(type="text", label="Output: Converted LaTeX code."),
38
  examples=["./eqn1.png", "./eqn2.png", "./eqn3.png"],