Spaces:
Runtime error
Runtime error
Commit
Β·
5372cb6
1
Parent(s):
80d5977
add files
Browse files
app.py
CHANGED
@@ -15,12 +15,12 @@ def inference(input_image_path):
|
|
15 |
img = Image.open(input_image_path)
|
16 |
#output = model(img)
|
17 |
#print("Model output:",output)
|
18 |
-
return
|
19 |
|
20 |
|
21 |
# Front end
|
22 |
title = "Convert images of equations into LaTeX code πβοΈβ π’"
|
23 |
-
description = "<div> Did you come across a complex mathematical expression that you want to refer to in your report/thesis? Is your freemium over at <a href='https://mathpix.com/' target='_blank'>Mathpix</a>? π« <br><br> Take a screenshot of the equation and use this application to convert it into LaTeX code. π To use it, simply upload your screenshot/equation image, or click one of the examples to load them. To verify the results, copy & paste the output in <a href='https://quicklatex.com/' target='_blank'>Quick LaTeX</a>. Read more at the links below.</div>"
|
24 |
article = "<p style='text-align: center'><a href='https://lukas-blecher.github.io/LaTeX-OCR/' target='_blank'>pix2tex: Using a ViT to convert images of equations into LaTeX code</a> | <a href='https://github.com/lukas-blecher/LaTeX-OCR' target='_blank'>Github</a></p>"
|
25 |
|
26 |
|
|
|
15 |
img = Image.open(input_image_path)
|
16 |
#output = model(img)
|
17 |
#print("Model output:",output)
|
18 |
+
return img.size
|
19 |
|
20 |
|
21 |
# Front end
|
22 |
title = "Convert images of equations into LaTeX code πβοΈβ π’"
|
23 |
+
description = "<div> (WORK IN PROGRESS!) Did you come across a complex mathematical expression that you want to refer to in your report/thesis? Is your freemium over at <a href='https://mathpix.com/' target='_blank'>Mathpix</a>? π« <br><br> Take a screenshot of the equation and use this application to convert it into LaTeX code. π To use it, simply upload your screenshot/equation image, or click one of the examples to load them. To verify the results, copy & paste the output in <a href='https://quicklatex.com/' target='_blank'>Quick LaTeX</a>. Read more at the links below.</div>"
|
24 |
article = "<p style='text-align: center'><a href='https://lukas-blecher.github.io/LaTeX-OCR/' target='_blank'>pix2tex: Using a ViT to convert images of equations into LaTeX code</a> | <a href='https://github.com/lukas-blecher/LaTeX-OCR' target='_blank'>Github</a></p>"
|
25 |
|
26 |
|